gpt4 book ai didi

python - 在 Windows 上执行 pip installpsychopy 时出现错误消息

转载 作者:太空宇宙 更新时间:2023-11-03 13:57:01 24 4
gpt4 key购买 nike

我在 anaconda spinder 2.7 64 位中安装 psychopy 模块时收到此类消息(附件中的图片)。我以前从未收到过此类说明,我认为因此我在运行代码时遇到了此类错误

from pyglet.window import key: ImportError: cannot import name key

cannot import name logging

NameError: name ‘PUINT’ is not defined

如果有人可以共享信息来避免此问题,那将非常有帮助。

回溯:

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'

错误:

enter image description here

最佳答案

你的问题

您的用户似乎无权在您的系统中安装软件包(对于所有用户)。

解决方案

从命令提示符中,您可以仅为您的用户安装该软件包,如下所示:

pip install <package> --user

或者

您可以按照以下步骤以管理员身份安装该软件包:

  1. 使用 Run This Program As An Administrator 以管理员身份运行命令提示符选项。
  2. 运行命令pip install <package>

关于python - 在 Windows 上执行 pip installpsychopy 时出现错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49530068/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com