首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装pyo模块时出错

安装pyo模块时出错
EN

Stack Overflow用户
提问于 2017-06-24 22:27:43
回答 1查看 1.5K关注 0票数 0

在Windows10上使用Python3.5.3

我正在尝试安装pyo0.8.6模块,但我根本无法安装。

首先,我尝试使用setup.exe提供的安装程序,但是每次导入模块时都给出了下一个错误:

代码语言:javascript
复制
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版本,但没有成功。

然后,我尝试使用下一个命令作为管理员从源代码安装它。

代码语言:javascript
复制
D:\OneDrive\Documents\Python\Librerías\pyo-master> C:\Users\Yooma\AppData\Local\Programs\Python\Python35-32\python.exe setup.py install

给了我下一个输出

代码语言:javascript
复制
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.batinstallers\installers\win目录中使用

代码语言:javascript
复制
PS D:\> D:\OneDrive\Documents\Python\Librerías\pyo-master\installers\win\build_installers_win.bat

给了我下一个输出

代码语言:javascript
复制
*** 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.

我完全迷路了。

ʰᵉˡᵖ

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-06-25 03:48:10

最后,贝兰吉奥说Windows上有一个bug将修复Python3.6的下一个版本.

我通过安装一个较旧的版本成功地使它工作。(0.8.4)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44741500

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档