我刚刚在 Windows 10 上为所有用户安装了 python 3.7 64 位
sers 并修改了 PATH
我将 pip 更新为 18.1
我安装了pygame,py -3 -m pip install pygame
它工作正常
我想安装pyrebasepy -3 -m pip install pyrebase
下载很好,然后我有这个消息并且 pip 日志目录被删除,所以我无法弄清楚发生了什么
Command ""C:\Program Files\Python37\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\mine\AppData\Local\Temp\pip-install-2rr8v7jh\pycryptodome\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\mine\AppData\Local\Temp\pip-record-om6lqxmm\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\mine\AppData\Local\Temp\pip-install-2rr8v7jh\pycryptodome\
但在它给出这个错误之前
Installing collected packages: pycryptodome, pyrebase
Found existing installation: pycryptodome 3.7.0
Uninstalling pycryptodome-3.7.0:
Successfully uninstalled pycryptodome-3.7.0
Running setup.py install for pycryptodome ... error
这是当我尝试安装 pycryptodome 时,它单独安装得很好,但是在尝试安装 pyrebase 时,它卸载了以前的 pycryptodome 并尝试自己安装但失败了。
有什么建议吗?谢谢
编辑:
我试过
pip install --upgrade setuptools
正如 https://github.com/thisbejim/Pyrebase/issues/179 中所建议的
但它没有解决我的问题
我仍然有一个错误,在 Windows10 上,python 3.7:
Installing collected packages: pycryptodome, pyrebase Running setup.py install for pycryptodome ... error Complete output from command "C:\Program Files\Python37\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\...\AppData\Local\Temp\pip-install-a9kop2nb\pycryptodome\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...\AppData\Local\Temp\pip-record-dm88ctzw\install-record.txt --single-version-externally-managed --compile:
最佳答案
安装 https://github.com/thisbejim/Pyrebase
我需要下载 .zip 文件(或 Git)而不是在修改 setup.py
后手动安装它通过指定最新的 'pycryptodome==3.7.3'
然后将 pyrebase\目录复制到我的 python 安装
c:\WPy-3710\python-3.7.1.amd64\Lib\site-packages\
但@silkindustry 之前的评论向我展示了一个新的库/包装器:Pyrebase4
https://github.com/nhorvath/Pyrebase4
可以轻松安装
pip3 install pyrebase4
关于python-3.x - 在 Windows Python 3.7 上安装 pyrebase 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53461316/