pip install - PermissionError: [Errno 13] Permission denied
2017-07-24 10:26
726 查看
当运行Anaconda,安装sklearn的的时候出现这个错误:
Windows 10
Python 3.6.0
Anaconda
出现的错误如下:
解决方法:以管理员的身份运行: Anaconda Prompt
在这个问题解除了之后又出现了新的问题,当我试着创建一个新的python时,
conda create --name py36 python=3.6
又开始报错了:
更改的方式是使用清华大学的镜像作为默认的库来更新,在Prompt下写如下代码:
Windows 10
Python 3.6.0
Anaconda
出现的错误如下:
Exception: Traceback (most recent call last): File "d:\anaconda3\lib\site-packages\pip\basecommand.py", line 209, in main status = self.run(options, args) File "d:\anaconda3\lib\site-packages\pip\commands\install.py", line 317, in run prefix=options.prefix_path, File "d:\anaconda3\lib\site-packages\pip\req\req_set.py", line 732, in install **kwargs File "d:\anaconda3\lib\site-packages\pip\req\req_install.py", line 835, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "d:\anaconda3\lib\site-packages\pip\req\req_install.py", line 1030, in move_wheel_files isolated=self.isolated, File "d:\anaconda3\lib\site-packages\pip\wheel.py", line 344, in move_wheel_files clobber(source, lib_dir, True) File "d:\anaconda3\lib\site-packages\pip\wheel.py", line 322, in clobber shutil.copyfile(srcfile, destfile) File "d:\anaconda3\lib\shutil.py", line 115, in copyfile with open(dst, 'wb') as fdst: PermissionError: [Errno 13] Permission denied: 'd:\\anaconda3\\Lib\\site-packages\\sklearn\\utils\\m urmurhash.cp35-win_amd64.pyd'
解决方法:以管理员的身份运行: Anaconda Prompt
在这个问题解除了之后又出现了新的问题,当我试着创建一个新的python时,
conda create --name py36 python=3.6
又开始报错了:
CondaHTTPError: HTTP None Nonefor url <None> An HTTP error occurred when trying to retrieve this URL. ConnectionError(MaxRetryError('HTTPSConnectionPool(host=\'repo.continuum.io\', p ort=443): Max retries exceeded with url: /pkgs/free/win-64/repodata.json.bz2 (Ca used by ReadTimeoutError("HTTPSConnectionPool(host=\'repo.continuum.io\', port=4 43): Read timed out. (read timeout=6.1)",))',),)出错的原因可能是由于国内的网络连接国外的库的问题,这种问题可能会随着某些重大事件的出现而出现。
更改的方式是使用清华大学的镜像作为默认的库来更新,在Prompt下写如下代码:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/[/code]
然后使用conda config --show语句查看配置信息,会发现:
里面多了一个默认项。
然后再更新包就会很快了。
后记:
假如上面两部做完之后还是报第二个问题的错,那么就去看看你的防火墙设置吧。
建议将防火墙关闭试试看。
参考文章:http://www.jianshu.com/p/2f3be7781451
相关文章推荐
- Python—pip的一些小问题__PermissionError: [Errno 13]
- pip install 提示:OSError: [Errno 13] 权限不够:
- 【解决】PermissionError: [Errno 13] Permission denied Anaconda3安装TensorFlow报错;
- macosx 10.11 python pip install 出现错误OSError: [Errno 1] Operation not permitted:
- [问题总结]PermissionError: [Errno 13] Permission denied:
- [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-1433.pth'
- 执行mysql_install_db error 1005 报错 can't create table 'db' (errno 13)
- MAC下解决pip安装权限问题 OSError: [Errno 13] Permission denied OSError: [Errno 1] Operation not permitted:
- pip install pycurl "Error: Could not run curl-config: [Errno 2] No such file or directory"
- 使用pip install 时出现[Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:ce,,
- PermissionError: [Errno 13] Permission denied: 'd:\\python\\python 3.5\\Lib\\sit e-packages\\numpy\\
- OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip-1.5-py2.7.egg/EGG-INFO
- mac下更新pip时提示OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip-8.0.2-py2.
- MAC 下用 pip 安装时出现 OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/
- Mac OS X El Capitan (10.11) sudo pip install 报错 “OSError: [Errno 1] Operation not permitted”
- macosx 10.11 python pip install 出现错误OSError: [Errno 1] Operation not permitted:
- 【Python学习笔记】macosx 10.11 python pip install 出现错误OSError: [Errno 1] Operation not permitted:
- python 中pip install ‘ASCII’ASCII问题
- 安装第三方包的时候报错 IOError: [Errno 13] Permission denied: 'C:\\Program Files\\Python2.7\\Lib\\site-packages
- 提高pip install的下载速度