Closed T-002 closed 8 years ago
@T-002 Sorry, I can't reproduce, looks like the compatible issue with setuptools , can you upgrade your pip and try again?
(python3) [sanpingz ~]$ pip -V
pip 8.1.2 from /Users/sanpingz/.virtualenvs/3.5/lib/python3.5/site-packages (python 3.5)
(python3) [sanpingz ~]$ pip install mysql-connector
Collecting mysql-connector
Downloading mysql-connector-2.1.3.zip (353kB)
100% |################################| 358kB 6.8kB/s
Building wheels for collected packages: mysql-connector
Running setup.py bdist_wheel for mysql-connector ... done
Stored in directory: /Users/sanpingz/Library/Caches/pip/wheels/dc/6e/ec/dc45f40261ced0ce1929c1e327248351c9c5607d77ce33e3e2
Successfully built mysql-connector
Installing collected packages: mysql-connector
Successfully installed mysql-connector
@sanpingz I did the following:
1) Creating a venv
$pyvenv mysql_test
source mysql_test/bin/activate
2) Checking versions
(mysql_test)$ python -V
> Python 3.5.2
(mysql_test)$ pip -V
> pip 8.1.2 from /Users/username/mysql_test/lib/python3.5/site-packages (python 3.5)
3) Still the same error :(
(mysql_test)$ pip install mysql-connector
Collecting mysql-connector
Using cached mysql-connector-2.1.3.zip
Installing collected packages: mysql-connector
Running setup.py install for mysql-connector ... error
Complete output from command /Users/username/mysql_test/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/6l/btfmdnh90pl0_0fdlw3c1tz8tdg9tj/T/pip-build-841jet05/mysql-connector/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/6l/btfmdnh90pl0_0fdlw3c1tz8tdg9tj/T/pip-c6awlv_6-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/username/mysql_test/include/site/python3.5/mysql-connector:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: option --single-version-externally-managed not recognized
----------------------------------------
Command "/Users/username/mysql_test/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/6l/btfmdnh90pl0_0fdlw3c1tz8tdg9tj/T/pip-build-841jet05/mysql-connector/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/6l/btfmdnh90pl0_0fdlw3c1tz8tdg9tj/T/pip-c6awlv_6-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/username/mysql_test/include/site/python3.5/mysql-connector" failed with error code 1 in /private/var/folders/6l/btfmdnh90pl0_0fdlw3c1tz8tdg9tj/T/pip-build-841jet05/mysql-connector/
@T-002 sorry for my late reply.
I released 2.1.4, use setuptools
to replace distutils
, try to solve the compatibility issue.
This new version should fix your issue. Can you try install again?
@sanpingz :)
$ pyvenv mysql_test
$ source mysql_test/bin/activate
(mysql_test) $ pip install --upgrade pip
Collecting pip
[...]
Successfully installed pip-8.1.2
(mysql_test) $ pip install mysql-connector
Collecting mysql-connector
Downloading mysql-connector-2.1.4.zip (355kB)
100% |████████████████████████████████| 358kB 18.6MB/s
Installing collected packages: mysql-connector
Running setup.py install for mysql-connector ... done
Successfully installed mysql-connector-2.1.4
Hi sanpingz,
unfortunately, I am unable to install your connector.
Best regards,
T-002