Exception:
Traceback (most recent call last):
File "D:\software\python35_64\lib\site-packages\pip-9.0.1-py3.5.egg\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "D:\software\python35_64\lib\site-packages\pip-9.0.1-py3.5.egg\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "D:\software\python35_64\lib\site-packages\pip-9.0.1-py3.5.egg\pip\req\req_set.py", line 784, in install
**kwargs
File "D:\software\python35_64\lib\site-packages\pip-9.0.1-py3.5.egg\pip\req\req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "D:\software\python35_64\lib\site-packages\pip-9.0.1-py3.5.egg\pip\req\req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "D:\software\python35_64\lib\site-packages\pip-9.0.1-py3.5.egg\pip\wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "D:\software\python35_64\lib\site-packages\pip-9.0.1-py3.5.egg\pip\wheel.py", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "D:\software\python35_64\lib\shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
Traceback (most recent call last):
File "D:\software\python35_64\lib\site-packages\pip-9.0.1-py3.5.egg\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "D:\software\python35_64\lib\site-packages\pip-9.0.1-py3.5.egg\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "D:\software\python35_64\lib\site-packages\pip-9.0.1-py3.5.egg\pip\req\req_set.py", line 784, in install
**kwargs
File "D:\software\python35_64\lib\site-packages\pip-9.0.1-py3.5.egg\pip\req\req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "D:\software\python35_64\lib\site-packages\pip-9.0.1-py3.5.egg\pip\req\req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "D:\software\python35_64\lib\site-packages\pip-9.0.1-py3.5.egg\pip\wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "D:\software\python35_64\lib\site-packages\pip-9.0.1-py3.5.egg\pip\wheel.py", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "D:\software\python35_64\lib\shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'D:\\software\\python35_64\\Lib\\site-packages\\pandas\\util\\_move.cp35-win_amd64.pyd'
解决方案:
首先确保python.exe的名字没有被修改(之所以可能被修改是因为有些朋友希望实现cmd中python版本的切换,从而修改了python.exe的名字)
然后,相关编辑器,比如我用的是pycharm ,关掉pycharm,原因是编译环境里面也有包管理器,
用编译环境pycharm安装python的包时失败,导致pip被占用,没有释放。
所以关掉pycharm,然后再次在cmd中输入pip install xxxx即可