[Tips]使用 pip v1.5 安装 MySQL Connector/Python

来源:互联网 发布:java web框架有哪些 编辑:程序博客网 时间:2024/04/30 01:02

使用 pip 安装自己需要的软件包,如果这些包没有被托管在PyPI 上,那么你使用普通的方式安装这些包时,你可能会失败。当你使用如下这种最平常的方式安装 MySQL Connect/Python 时,你会得到如下的提示信息:

shell> pip install mysql-connector-python  Could not find any downloads that satisfy the requirement mysql-connector-python 
  Some externally hosted files were ignored   (use --allow-external mysql-connector-python to allow).

可以用如下的方法来解决:

shell> pip install --allow-external mysql-connector-python mysql-connector-python


0 0
原创粉丝点击