You don't appear to have the necessary permissions to install packages
2017-12-16 11:11
316 查看
新换了电脑,所以重新配置平时所需要的软件等环境,对pycharm使用Anaconda 的site_packages环境(为了省掉大量安装packages的烦恼),结果使用pycharm安装package时候,遇到了root权限问题,不让访问”C:\PrograData\Anaconda3”,,,。原来wins也有这个root 题。
pip install tensorflow
被deny,permission denied
按照提示,在
cmd 执行了下面的命令,给了”C:\PrograData\Anaconda3”的my_root权限
这个时候,在cmd输入
激活了my_root权限
这个时候,使用
就可以安装需要的packages了。
注意:权限toot后,对pycharm的Default setting要修改为下图红色的内容所在的位置(也就是你的root可以访问的新位置):
可以看出来,我们已经可以正常安装新的python package啦
也是成功的
总结:本质上其实是遇到了一个文件访问权限的问题,解决方法
给某个文件夹或者文件赋予权限
操作系统:win10
pychrm:python3.6
一、cmd pip安装 python package
在cmd使用pip 安装package遇到权限问题pip install tensorflow
被deny,permission denied
二、使用pycharm的interpreter安装
给出下面的警告信息# # You don't appear to have the necessary permissions to install packages # into the install area 'C:\PrograData\Anaconda3'. # However you can clone this environment into your home directory and # then make changes to it. # This may be done using the command: # # $ conda create -n my_root --clone=C:\PrograData\Anaconda3
按照提示,在
cmd 执行了下面的命令,给了”C:\PrograData\Anaconda3”的my_root权限
conda create -n my_root --clone="C:\PrograData\Anaconda3"
这个时候,在cmd输入
activate my_root
激活了my_root权限
这个时候,使用
pip install [packagename]
就可以安装需要的packages了。
注意:权限toot后,对pycharm的Default setting要修改为下图红色的内容所在的位置(也就是你的root可以访问的新位置):
一、这个时候我们使用+,在pycharm中试验一下,看看权限问题解决了没有:
可以看出来,我们已经可以正常安装新的python package啦
二、或者使用cmd
pip install tensorflow-gpu
也是成功的
总结:本质上其实是遇到了一个文件访问权限的问题,解决方法
给某个文件夹或者文件赋予权限
相关文章推荐
- 驱动程序找不到内核头提示 You do not appear to have the sources for the “kernel version” kernel install 问题
- OUI-10038:You do not have the necessary permissions to write to the inventory at /oracle/product/ora
- 关于“Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.”问题的解决
- 【iOS问题】The file “XXX.app” couldn’t be opened because you don’t have permission to view it.
- error PRJ0050: Failed to register output. Please ensure you have the appropriate permissions to (转载)
- Xcode6:The file couldn’t be opened because you don’t have permission to view it
- 【iOS开发-101】解决方案:The file * couldn't be opened because you don't have permission to view it
- 【iOS问题】The file “XXX.app” couldn’t be opened because you don’t have permission to view it.
- IOS编译报错-The file “XXX.app” couldn’t be opened because you don’t have permission to view it.
- The file “XXX” couldn’t be opened because you don’t have permission to view it.
- 错误:The file “XXX” couldn’t be opened because you don’t have permission to view it.
- Swift The file “” couldn’t be opened because you don’t have permission to view it?
- Xcode6:The file couldn’t be opened because you don’t have permission to view it
- iOS 解决The file couldn’t be opened because you don’t have permission to view it.问题解决
- Fckeditor you have no permissions to create the folder问题及解决办法
- 导入第三方库报错:The file “XXX.app” couldn’t be opened because you don’t have permission to view it.
- xcode跑ios程序出错The file “HelloOpenGL” couldn’t be opened because you don’t have permission to view it.
- the file "xxx.app" couldn't be opened because you don't have permission to view it.
- 解决"Sorry, but you don’t have the administrative privileges needed to do this."的方法 wordpress, pagelines, eco
- Xcode6:The file couldn’t be opened because you don’t have permission to view it