在Windows10上使用Python3.5.3。
我正在尝试安装pyo0.8.6模块,但我根本无法安装。
首先,我尝试使用setup.exe提供的安装程序,但是每次导入模块时都给出了下一个错误:
Traceback (most recent call last):
File "D:/OneDrive/Documents/Python/prubas/pyo test.py", line 1, in <module>
from pyo import *
File "C:\Users\Yooma\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pyo.py", line 21, in <module>
import pyolib.analysis as analysis
File "C:\Users\Yooma\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pyolib\analysis.py", line 32, in <module>
from ._core import *
File "C:\Users\Yooma\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pyolib\_core.py", line 57, in <module>
from _pyo import *
ImportError: DLL load failed: The specified module could not be found然后,我试图安装Python2.7pyo版本,但没有成功。
然后,我尝试使用下一个命令作为管理员从源代码安装它。
D:\OneDrive\Documents\Python\Librerías\pyo-master> C:\Users\Yooma\AppData\Local\Programs\Python\Python35-32\python.exe setup.py install给了我下一个输出
running install
running build
running build_py
running build_ext
building '_pyo' extension
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DUSE_PORTAUDIO -DUSE_PORTMIDI -DUSE_OSC -IC:\porta
udio\include -IC:\portmidi\pm_common -Iinclude "-IC:\Program Files (x86)\Mega-Nerd\libsndfile\include" -IC:\liblo-0.28 -IC:\pthreads\include -IC:\portmid
i\porttime -IC:\Users\Yooma\AppData\Local\Programs\Python\Python36-32\include -IC:\Users\Yooma\AppData\Local\Programs\Python\Python36-32\include "-IC:\Pr
ogram Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt" "-IC:\Program Files (x86)
\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\shared" "-IC:\Program Files (x86)\Windows Kits\10
\include\10.0.15063.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt" /Tcsrc/engine\pyomodule.c /Fobuild\temp.win32-3.6\Release
\src/engine\pyomodule.obj -Wno-strict-prototypes -Wno-strict-aliasing -O3 -g0
cl : Command line error D8021 : invalid numeric argument '/Wno-strict-prototypes'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2然后,我尝试将bin文件夹更改为大写的C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe,改为C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe和nothing。不要问为什么
然后我将C++ 2017 (14.10)降级为Visual C++ 2015 (14.0) (MSC v.1900) --不要问为什么
最后,我尝试使用win.bat在installers\installers\win目录中使用
PS D:\> D:\OneDrive\Documents\Python\Librerías\pyo-master\installers\win\build_installers_win.bat给了我下一个输出
*** Build installer for python2.7 ***
"Compil32" is not recognized as an internal or external command, operable program or batch file.
*** Build installer for python3.5 ***
"Compil32" is not recognized as an internal or external command, operable program or batch file.我完全迷路了。
ʰᵉˡᵖ
发布于 2017-06-25 03:48:10
最后,贝兰吉奥说Windows上有一个bug将修复Python3.6的下一个版本.
我通过安装一个较旧的版本成功地使它工作。(0.8.4)。
https://stackoverflow.com/questions/44741500
复制相似问题