操作系统: Windows 10 x64
我正在尝试使用以下命令安装watson-developer-cloud
pip install --upgrade watson-developer-cloud但是,我得到以下错误
Exception:
Traceback (most recent call last):
File "C:\Users\AurangzebRathore\Anaconda2\lib\site-
packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "C:\Users\AurangzebRathore\Anaconda2\lib\site-
packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "C:\Users\AurangzebRathore\Anaconda2\lib\site-packages\pip\req\req_set.py", line 784, in install
**kwargs
File "C:\Users\AurangzebRathore\Anaconda2\lib\site-packages\pip\req\req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "C:\Users\AurangzebRathore\Anaconda2\lib\site-packages\pip\req\req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "C:\Users\AurangzebRathore\Anaconda2\lib\site-packages\pip\wheel.py",
line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "C:\Users\AurangzebRathore\Anaconda2\lib\site-packages\pip\wheel.py", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "C:\Users\AurangzebRathore\Anaconda2\lib\shutil.py", line 97, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied:
'C:\\Users\\AurangzebRathore\\Anaconda2\\Lib\\site-packages\\_cffi_backend.pyd'我试着用
$ easy_install --upgrade watson-developer-cloud但是当我运行代码时,它仍然写着
ImportError: No module named watson_developer_cloud发布于 2017-12-27 19:47:11
确保您正在以管理员身份运行命令。
在此之后,使用pip --version并查看是否工作。如果没有,您需要重新安装。如果您从源代码安装Python,使用python.org的安装程序,或者通过Homebrew安装,那么您应该已经拥有了pip。
如果pip尚未安装,那么首先尝试从标准库引导它:
python -m ensurepip --default-pip试着更新你的点对点:
python -m pip install --upgrade安装您的Watson软件包:
pip install -I watson-developer-cloud==0.26.1这是API引用中的正式命令,正如您在这个链接中看到的那样。
https://stackoverflow.com/questions/47990658
复制相似问题