腾讯云qclib安装
1、 执行:pip install -U qclib -i http://pypi.dq.oa.com/simple --trusted-host pypi.dq.oa.com
出现:error in qclib setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers;
解决方法:sudo pip install setuptools -U
2、执行:pip install xxx
出现:网络问题:
解决:命令后加—proxy=127.0.0.1:12639
3、执行:sudo pip install setuptools -U --proxy=127.0.0.1:12639
出现:ERROR: Could not install packages due to an EnvironmentError:
解决:sudo pip install setuptools -U --proxy=127.0.0.1:12639 --ignore-installed
4、执行:pip install -U qclib -i http://pypi.dq.oa.com/simple --trusted-host pypi.dq.oa.com
出现:EnvironmentError: mysql_config not found
解决:You installed python
You did brew install mysql
You did export PATH=$PATH:/usr/local/mysql/bin
pip install MySQL-Python
5、权限问题:
https://blog.csdn.net/sdlypyzq/article/details/78178919
sudo chown -R $USER /Library/Python/2.7/site-packages/
https://marcelog.github.io/articles/mac_osx_python_pip_install_operation_not_permitted.html
pip install xxx —user
mysql-python安装成功的办法:
brew install mysql@5.7
brew link --force mysql@5.7
brew install mysql-client
6、最后:LDFLAGS=-L/usr/local/opt/openssl/lib pip install mysql-python
LDFLAGS=-L/usr/local/opt/openssl/lib pip install -U qclib -i http://pypi.dq.oa.com/simple --trusted-host pypi.dq.oa.com --user
7、安装后出现模块找不到,检查是否安装到外网的:
![](https://img.haomeiwen.com/i2017584/f33a4c7349c45eaf.png)
![](https://img.haomeiwen.com/i2017584/1f59590c843c091f.png)
pip install -U pyqq -i http://pypi.dq.oa.com/simple --trusted-host pypi.dq.oa.com --user
重新安装内部的源