Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/292.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
可以在Python 2.7中导入soundfie吗?_Python_Windows_Python 2.7_Python Import_Importerror - Fatal编程技术网

可以在Python 2.7中导入soundfie吗?

可以在Python 2.7中导入soundfie吗?,python,windows,python-2.7,python-import,importerror,Python,Windows,Python 2.7,Python Import,Importerror,我在做什么 import soundfile as sf 我得到了一个错误: ImportError:没有名为soundfile的模块 我正在Windows10中使用Python2.7。我已经做到了: pip install pysoundfile pip install conda pip install virtualenv python -m virtualenv venv pip install numpy pip install cffi 在Windows cmd中,但没

我在做什么

import soundfile as sf
我得到了一个错误:

ImportError:没有名为soundfile的模块

我正在Windows10中使用Python2.7。我已经做到了:

pip install pysoundfile

pip install conda

pip install virtualenv

python -m virtualenv venv

pip install numpy

pip install cffi
在Windows cmd中,但没有运气…我也尝试了:

pip install libsndfile
但我得到了一个错误:

收集libsndfile找不到满足以下条件的版本: 需求库文件(来自版本:)没有匹配的分发 为libsndfile找到

有人试过吗?

执行:

sudo apt-get install python-pip


然后用前缀
pip2

再次执行上述所有包命令,谢谢,但我使用的是windows10,这些命令看起来像ubuntu命令,对吗?windows的等价物是什么?
sudo apt-get install python3-pip