cmd命令行使用pip install XXX库时,出现安装失败。

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_42980638/article/details/89032821

**

当我们在计算机cmd命令行使用pip install XXX库时,出现安装失败。

**

问题

当我们在windows系统下cmd命令行使用pip install XXX库时,出现安装失败。
出现以下提示Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: ‘c:\program files (x86)\python37-32\lib\site-packages\pip-10.0.1.dist-info\entry_points.txt’
这是因为我们用户权限不足造成的
解决办法
命令行输入 pip install --user XXX(需安装的库)
例如 pip install --user jieba

如果还不能解决
那么请先升级pip工具
升级命令python -m pip install --user --upgrade pip
然后再进行安装
命令行输入 pip install --user XXX(需安装的库)

展开阅读全文

求助,pip install时出错

03-26

用pip安装包时出错:rnrn[img=https://img-bbs.csdn.net/upload/201803/26/1521994026_382283.png][/img]rnrnC:\Users\123>pip install git+https://github.com/bartvm/mimir.gitrnCollecting git+https://github.com/bartvm/mimir.gitrn Cloning https://github.com/bartvm/mimir.git to c:\users\123\appdata\local\temp\pip-_frz_5rg-buildrnRequirement already satisfied: pyzmq in d:\anaconda3\lib\site-packages (from mimir==0.1.dev1)rnRequirement already satisfied: six in d:\anaconda3\lib\site-packages (from mimir==0.1.dev1)rnRequirement already satisfied: simplejson in d:\anaconda3\lib\site-packages (from mimir==0.1.dev1)rnInstalling collected packages: mimirrn Running setup.py install for mimir ... errorrn Complete output from command d:\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\123\\AppData\\Local\\Temp\\pip-_frz_5rg-build\\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\123\AppData\Local\Temp\pip-jyoo4hqt-record\install-record.txt --single-version-externally-managed --compile:rn running installrn running buildrn running build_pyrn creating buildrn creating build\lib.win-amd64-3.6rn creating build\lib.win-amd64-3.6\mimirrn copying mimir\formatters.py -> build\lib.win-amd64-3.6\mimirrn copying mimir\handlers.py -> build\lib.win-amd64-3.6\mimirrn copying mimir\logger.py -> build\lib.win-amd64-3.6\mimirrn copying mimir\plot.py -> build\lib.win-amd64-3.6\mimirrn copying mimir\remote.py -> build\lib.win-amd64-3.6\mimirrn copying mimir\serialization.py -> build\lib.win-amd64-3.6\mimirrn copying mimir\stream.py -> build\lib.win-amd64-3.6\mimirrn copying mimir\utils.py -> build\lib.win-amd64-3.6\mimirrn copying mimir\__init__.py -> build\lib.win-amd64-3.6\mimirrn running build_extrn error: [WinError 2] 系统找不到指定的文件。rnrn ----------------------------------------rnCommand "d:\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\123\\AppData\\Local\\Temp\\pip-_frz_5rg-build\\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\123\AppData\Local\Temp\pip-jyoo4hqt-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\123\AppData\Local\Temp\pip-_frz_5rg-build\rnrn怎么解决啊,求大神帮助,谢谢 论坛

没有更多推荐了,返回首页