简体   繁体   English

无法在 Python 中安装 PsychoPy 模块

[英]Unable to install PsychoPy module in Python

I tried to install the psychopy module in python, using Anaconda Prompt and python -m pip install PsychoPy and it gave me error messages I have no idea how to interpret: enter image description here I tried to install the psychopy module in python, using Anaconda Prompt and python -m pip install PsychoPy and it gave me error messages I have no idea how to interpret: enter image description here

followed by a bunch of white text mostly starting with "Requirement already satisfied: [...]" and two other red walls of text "ERROR: Command errored out with exit status 1: [...]" (I can also post pictures of them, if needed)接下来是一堆白色文本,主要以“要求已经满足:[...]”和另外两个红色的文本墙“错误:命令错误,退出状态 1:[...]”开头(我也可以发布他们的照片,如果需要)

Additional Info:附加信息:

  • I use a Windows 10, Version 21H2, x64-based System我使用 Windows 10,版本 21H2,基于 x64 的系统
  • For Python (3.8.8) I use Sypder对于 Python (3.8.8) 我使用 Sypder
  • Anaconda Navigator is Version 2.0.3 Anaconda 导航器是版本 2.0.3
  • I also have the PsychoPy Standalone (Coder, Runner & Builder) installed (version 2022.2.0)我还安装了 PsychoPy Standalone(Coder、Runner 和 Builder)(版本 2022.2.0)

Any and all help is appreciated!!任何和所有的帮助表示赞赏!

Please also tell me if I did this question-thing right, this is my first time posting here and I don't know the etiquette yet还请告诉我我是否做对了这个问题,这是我第一次在这里发帖,我还不知道礼仪

This is not for sure.这不确定。 Maybe you already solve this problem.也许你已经解决了这个问题。 I have experienced some problem of psychopy.我经历过一些心理问题。 So, I hope this is helpful for you and many other researchers with psychopy.所以,我希望这对您和许多其他精神病研究人员有所帮助。

First, update conda will solve many kind of problems.首先,更新 conda 会解决很多问题。 ''' conda update --all ''' ''' conda 更新 --all '''

Second, In anaconda environment using 'conda' command is recommendation.其次,建议在 anaconda 环境中使用“conda”命令。 In anaconda environment use(except for impossible) 'conda' command is recommended.在 anaconda 环境中,推荐使用(除了不可能)'conda' 命令。 Generally, mixed use of 'pip' and 'conda' command is not matter.一般来说,混合使用“pip”和“conda”命令是没有关系的。 BUT, SOMETIMES, this could occur minor error like this question.但是,有时,这可能会发生像这个问题这样的小错误。

Third, use anaconda virtual environment.三、使用anaconda虚拟环境。 Anaconda provide virtual environment. Anaconda 提供虚拟环境。 Initially virtual environment looks confused but, this could safe and secured develop your experiment program.最初虚拟环境看起来很混乱,但这可以安全可靠地开发您的实验程序。

Lastly, this probelem.最后,这个问题。 In the middle of your error message.在您的错误消息中间。 "requires-python>=3.6" <- maybe this means your environment is not appropriate the environment. "requires-python>=3.6" <- 这可能意味着您的环境不适合该环境。 but your environment is 3.8.8.但你的环境是3.8.8。 For now this is just hypothesis.目前这只是假设。 I think your environment have more than 2 of python could be installed.我认为您的环境有超过 2 个 python 可以安装。 So, delete all python and reinstall the anaconda and use virtual environment could be safe.因此,删除所有 python 并重新安装 anaconda 并使用虚拟环境可能是安全的。

I haven't used this community for a long time so I don't know the etiquette.好久没用这个社区了,不懂礼仪。 If I was rude, thank you for your understanding.如果我很粗鲁,谢谢你的理解。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM