我在anaconda spyder 2.7 64位中安装psychopy
模块时收到此类消息(附件中的图像)。我以前从来没有得到过这样的指令,因为我在运行代码时遇到了这种错误
来自pyglet.window导入键:ImportError:无法导入名称密钥
无法导入名称记录
NameError:未定义名称“PUINT”
如果某人可以共享信息以避免这些问题,那将非常有帮助。
回溯:
Exception:
Traceback (most recent call last):
File "C:\Users\Ravi\Anaconda2\lib\site-packages\pip\basecommand.py", line
215, in main
status = self.run(options, args)
File "C:\Users\Ravi\Anaconda2\lib\site-packages\pip\commands\install.py",
line 342, in run
prefix=options.prefix_path,
File "C:\Users\Ravi\Anaconda2\lib\site-packages\pip\req\req_set.py", line
795, in install
requirement.commit_uninstall()
File "C:\Users\Ravi\Anaconda2\lib\site-packages\pip\req\req_install.py",
line 767, in commit_uninstall
self.uninstalled.commit()
File "C:\Users\Ravi\Anaconda2\lib\site-packages\pip\req\req_uninstall.py",
line 142, in commit
rmtree(self.save_dir)
File "C:\Users\Ravi\Anaconda2\lib\site-packages\pip\_vendor\retrying.py",
line 49, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "C:\Users\Ravi\Anaconda2\lib\site-packages\pip\_vendor\retrying.py",
line 212, in call
raise attempt.get()
File "C:\Users\Ravi\Anaconda2\lib\site-packages\pip\_vendor\retrying.py",
line 247, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "C:\Users\Ravi\Anaconda2\lib\site-packages\pip\_vendor\retrying.py",
line 200, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "C:\Users\Ravi\Anaconda2\lib\site-packages\pip\utils\__init__.py", line
102, in rmtree
onerror=rmtree_errorhandler)
File "C:\Users\Ravi\Anaconda2\lib\shutil.py", line 261, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Users\Ravi\Anaconda2\lib\shutil.py", line 261, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Users\Ravi\Anaconda2\lib\shutil.py", line 261, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Users\Ravi\Anaconda2\lib\shutil.py", line 261, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Users\Ravi\Anaconda2\lib\shutil.py", line 261, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Users\Ravi\Anaconda2\lib\shutil.py", line 261, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Users\Ravi\Anaconda2\lib\shutil.py", line 261, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Users\Ravi\Anaconda2\lib\shutil.py", line 266, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File "C:\Users\Ravi\Anaconda2\lib\site-packages\pip\utils\__init__.py", line
114, in rmtree_errorhandler
func(path)
WindowsError: [Error 5] Zugriff verweigert:
'c:\\users\\ravi\\appdata\\local\\temp\\pip-ta7sa2-
uninstall\\users\\ravi\\anaconda2\\lib\\site-
packages\\numpy\\core\\multiarray.pyd'
错误:
答案 0 :(得分:1)
您的用户似乎无权在系统中安装软件包(适用于所有用户)。
在命令提示符下,您可以仅为您的用户安装软件包,如下所示:
pip install <package> --user
<强> OR 强>
您可以按照以下步骤以管理员身份安装软件包:
Run This Program As An Administrator
选项以管理员身份运行命令提示符。pip install <package>