python 常见问题

Command "d:\progra~2\jetbra~1\testvir\scripts\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\admin\\appdata\\local\\temp\\pip-build-fsnoa6\\mysql-python\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\admin\appdata\local\temp\pip-zjni4l-record\install-record.txt --single-version-externally-managed --compile --install-headers d:\progra~2\jetbra~1\testvir\include\site\python2.7\mysql-python" failed with error code 1 in c:\users\admin\appdata\local\temp\pip-build-fsnoa6\mysql-python\

需要添加插件支持:https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python

 

 

pip 安装报错: is not a supported wheel on this platform
  解决办法:

    查看pip支持版本:

      进入python Shell命令:

        import pip

        print(pip.pep425tags.get_supported())可以获取到pip支持的文件名还有版本

 

 

错误2: bash: virtualenv: command not found 

   find -name virtualenv

错误3: IOError: [Errno 13] Permission denied: '/usr/local/bin/node'

   没有权限,需要使用sudo pip install virtualenv 获取权限安装

 

posted @ 2018-02-01 15:56  探出的头  阅读(188)  评论(0编辑  收藏  举报