de>。但是,当尝试在激活的virtualenv中运行pip install mysql connector python时,我得到以下信息:下载/解包mysql connector python找不到任何满足要求的下载mysql connector py
de>。但是,当尝试在激活的virtualenv中运行pip install mysql connector python时,我得到以下信息:下载/解包mysql connector python找不到任何满足要求的下载mysql connector py,python,python-2.7,pip,mysql-python,mysql-connector,Python,Python 2.7,Pip,Mysql Python,Mysql Connector,de>。但是,当尝试在激活的virtualenv中运行pip install mysql connector python时,我得到以下信息:下载/解包mysql connector python找不到任何满足要求的下载mysql connector python一些外部托管的文件被忽略(使用--allow external mysql connector python to allow)。正在清理…没有找到任何mysql connector python的发行版,然后通过pip install
de>。但是,当尝试在激活的virtualenv中运行
pip install mysql connector python
时,我得到以下信息:下载/解包mysql connector python找不到任何满足要求的下载mysql connector python一些外部托管的文件被忽略(使用--allow external mysql connector python to allow)。正在清理…没有找到任何mysql connector python的发行版,然后通过pip install--allow all external mysql connector python
$ python -V
Python 2.7.5
$ sudo python -V
Python 2.6.6
$ python
>>> import mysql.connector
ImportError: No module named mysql.connector
$ which pip
/usr/bin/pip
$ sudo which pip
/usr/bin/pip
$ which easy_install
/opt/rh/python27/root/usr/bin/easy_install
$ sudo which easy_install
/usr/bin/easy_install
/usr/bin/ $ ls -al pip
-rwxr-xr-x. 1 root root 281 Feb 7 11:07 pip
/opt/rh/python27/root/usr/bin $ ls -al easy_install
-rwxr-xr-x. 1 root root 344 Aug 16 11:40 easy_install
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python
chown username:usergroup(usually your username also) path/to/change/ownership