我尝试执行:
python -m pip install tensorflow
从以管理员身份运行的Windows 10命令提示符下。
我遇到以下错误:
Collecting tensorflow
Using cached https://files.pythonhosted.org/packages/54/5f/e1b2d83b808f978f51b7ce109315154da3a3d4151aa59686002681f2e109/tensorflow-2.0.0-cp37-cp37m-win_amd64.whl
Collecting google-pasta>=0.1.6
Downloading https://files.pythonhosted.org/packages/c3/fd/1e86bc4837cc9a3a5faf3db9b1854aa04ad35b5f381f9648fbe81a6f94e4/google_pasta-0.1.8-py3-none-any.whl (57kB)
|████████████████████████████████| 61kB 435kB/s
Requirement already satisfied: keras-preprocessing>=1.0.5 in c:\users\owner\appdata\roaming\python\python37\site-packages (from tensorflow) (1.1.0)
Requirement already satisfied: numpy<2.0,>=1.16.0 in c:\users\owner\appdata\roaming\python\python37\site-packages (from tensorflow) (1.17.4)
Collecting wrapt>=1.11.1
Using cached https://files.pythonhosted.org/packages/23/84/323c2415280bc4fc880ac5050dddfb3c8062c2552b34c2e512eb4aa68f79/wrapt-1.11.2.tar.gz
ERROR: Error [WinError 87] The parameter is incorrect while executing command python setup.py egg_info
ERROR: Could not install packages due to an EnvironmentError: [WinError 87] The parameter is incorrect
我在PyCharm终端(64位版本)和Python 3.7.4(64位版本)中都尝试了此操作。根据tensorflow,使用64位版本似乎很重要。
答案 0 :(得分:2)
它对我也有用,我禁用了comodo并运行了“ pip install pyttsx3 --user”
答案 1 :(得分:0)
这个问题的解决方案给了我启发:Conda-forge spaCy install fails - Error: WinError 87 - the parameter is incorrect
我去了COMODO Internet Security Premium,并选择了“自动包含->禁用” 15分钟。然后我重新运行命令
python -m pip install tensorflow
从以管理员身份运行的Windows 10命令提示符下输入。