美文网首页
腾讯云qclib安装

腾讯云qclib安装

作者: candice0430 | 来源:发表于2019-11-29 17:08 被阅读0次

    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安装成功的办法:

    https://stackoverflow.com/questions/43634584/cant-install-mysql-python-with-pip-on-macos-10-12-4/43645248

    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、安装后出现模块找不到,检查是否安装到外网的:

    找不到模块 外网的

    pip install -U pyqq -i http://pypi.dq.oa.com/simple --trusted-host pypi.dq.oa.com --user
    重新安装内部的源

    相关文章

      网友评论

          本文标题:腾讯云qclib安装

          本文链接:https://www.haomeiwen.com/subject/zdmgwctx.html