I can't install mysql-connector-python with anaconda

Status

I'm using anaconda to learn python, but when I try to install it to use the database, I get an error

% conda install mysql-connector-python
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - mysql-connector-python -> python[version='>=2.7,<2.8.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0']

Your python: python=3.8

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

I don't know the details, but is it incompatible? Need to specify the version? I feel like it is being said. Please let me know if anyone can understand the details of the error.

approach

conda install -c conda-forge mysql-connector-python Since Anaconda has few packages, I installed it from the channel called conda-forge. It seems that it can be installed with pip, but I found multiple articles that it is dangerous to mix anaconda and pip, so I did not use it this time. (I think it's a good idea to search in the order of conda> conda-forge> pip.)

A word

conda search mysql-connector-pythonWhen you run pkgs/It's on the main channel! I found out that it may be possible to install even if I enter this

I was told that multiple packages were installed when I ran the command, but I wonder if this is a must for using mysql-connector-python

Recommended Posts

I can't install mysql-connector-python with anaconda
I can't install Anaconda!
I can't install python3 with pyenv-vertualenv
I can't install the package with pip.
I can't install Dask with pip on Ubuntu
Install Python environment with Anaconda
Install Keras (used with Anaconda)
I can't search with # google-map. ..
I can't download images with Google_images_download
I can't install scikit-learn in Python
I can't use Japanese with pyperclip
How to install Anaconda with pyenv
I tried linebot with flask (anaconda) + heroku
I want to pip install with PythonAnywhere
I can't deploy with google app engine
I can't see new files with yum
Why can't I install matplotlib in python! !!
Avoiding "'ascii' codec can't decode" with pip install
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
I wanted to install Python 3.4.3 with Homebrew + pyenv
I played with wordcloud!
Error with pip install
Use Python 3.8 with Anaconda
(CentOS) ERROR: Can't install RMagick 4.0.0. Can't find ImageMagick with pkg-config
Install Anaconda on Windows 10
Install Voluptuous with Python 2.5
Install torch-scatter with PyTorch 1.7
[Note] I can't connect with wget, but I can connect with curl
Install python with pyenv
I can't manipulate iframes in a page with Selenium
I can't exe a project using PyWebView with PyInstaller
Install scikit.learn with pip
I tried to install scrapy on Anaconda and couldn't
I want to improve efficiency with Python even in an experimental system (1) Install Anaconda with Chocolatey
I want to install a package from requirements.txt with poetry
I can't log in to the admin page with Django3
I have libncurses but get angry with pip install readline
Install cvxopt on 64bit Anaconda
I tried fp-growth with python
I wrote GP with numpy
[CentOS7] Install anaconda using pyenv
I tried Learning-to-Rank with Elasticsearch!
I made blackjack with python!
Install cvxpy on windows, Anaconda
When moss with pip install
Specify version with conda install
I tried clustering with PyCaret
Install module on Anaconda (Mac)
Install external libraries with Python
I implemented VQE with Blueqat
Install github repository with pip
I measured BMI with tkinter
I tried gRPC with Python
I made COVID19_simulator with JupyterLab
I tried scraping with python
I made Word2Vec with Pytorch
I made blackjack with Python.
I made wordcloud with Python.
Try using folium with anaconda
What to do if you can't install pyaudio with pip #Python
I get an error when trying to install maec 4.0.1.0 with pip