问题描述
我尝试安装psychopy并不断收到一些错误。 在尝试通过 pip 或 pycharm 安装它时,我得到了这个:
running build_ext
building 'pyWinhook._cpyHook' extension
swigging pyWinhook/cpyHook.i to pyWinhook/cpyHook_wrap.c
swig.exe -python -o pyWinhook/cpyHook_wrap.c pyWinhook/cpyHook.i
error: command 'swig.exe' failed: No such file or directory
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\exemed\PycharmProjects\untitled2\venv\venv\Scripts\python.exe' -u -c 'import sys,setuptools,tokenize; sys.argv[0] = '"'"'C:\\Users\\exemed\\AppData\\Local\\Temp\\pip-install-3gqy6ttx\\pywinhook_dfa44b41fdb7490dbae3492c6c94362e\\setup.py'"'"'; __file__='"'"'C:\\Users\\exemed\\AppData\\Local\\Temp\\pip-install-3gqy6ttx\\pywinhook_dfa44b41fdb7490dbae3492c6c94362e\\setup.py'"'"';f=getattr(tokenize,'"'"'open'"'"',open)(__file__);code=f.read().replace('"'"'\r\n'"'"','"'"'\n'"'"');f.close();exec(compile(code,__file__,'"'"'exec'"'"'))' install --record 'C:\Users\exemed\AppData\Local\Temp\pip-record-bscln1ih\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\exemed\PycharmProjects\untitled2\venv\venv\include\site\python3.6\pyWinhook'
当我尝试在 Google Colab 中执行此操作时,发生了以下情况:
NoSuchDisplayException: Cannot connect to "None"
正在为这些环境中的任何一个寻找修复
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)