问题安装源头

发布于 2025-01-21 13:48:05 字数 1393 浏览 5 评论 0原文

我正在尝试在新的conda环境中安装音件。我已经尝试了所有内容,并且一直在获取modulenotfounderror:没有名为“ Soundfile”的模块。

在同一台机器上,我有一个旧的conda环境,可以使用它。如果我键入pip show oundfile我得到:

Name: SoundFile
Version: 0.10.3.post1
Summary: An audio library based on libsndfile, CFFI and NumPy
Home-page: https://github.com/bastibe/PySoundFile
Author: Bastian Bechtold
Author-email: [email protected]
License: BSD 3-Clause License
Location: /usr/local/lib/python3.6/dist-packages
Requires: cffi
Required-by:

奇怪的是,这是我在新的conda环境中获得的输出(是一样的!):

Name: SoundFile
Version: 0.10.3.post1
Summary: An audio library based on libsndfile, CFFI and NumPy
Home-page: https://github.com/bastibe/PySoundFile
Author: Bastian Bechtold
Author-email: [email protected]
License: BSD 3-Clause License
Location: /usr/local/lib/python3.6/dist-packages
Requires: cffi
Required-by: 

克隆旧的conda环境

conda create --name NEWENV --file spec-file.txt
conda env update --name NEWENV --file environment.yml
pip install -r requirements.txt

我使用我真的不喜欢 t理解为什么声音它在新环境中不起作用,即使它以完全相同的方式设置。有见地吗?

I'm trying to install soundfile in a new conda environment. I've tried everything and I keep getting the ModuleNotFoundError: No module named 'soundfile'.

On the same machine, I have an old conda environment where it works. If I type pip show soundfile I get:

Name: SoundFile
Version: 0.10.3.post1
Summary: An audio library based on libsndfile, CFFI and NumPy
Home-page: https://github.com/bastibe/PySoundFile
Author: Bastian Bechtold
Author-email: [email protected]
License: BSD 3-Clause License
Location: /usr/local/lib/python3.6/dist-packages
Requires: cffi
Required-by:

The strange thing is that this is the output I get in the new conda environment (it's the same!):

Name: SoundFile
Version: 0.10.3.post1
Summary: An audio library based on libsndfile, CFFI and NumPy
Home-page: https://github.com/bastibe/PySoundFile
Author: Bastian Bechtold
Author-email: [email protected]
License: BSD 3-Clause License
Location: /usr/local/lib/python3.6/dist-packages
Requires: cffi
Required-by: 

I cloned the old conda environment using

conda create --name NEWENV --file spec-file.txt
conda env update --name NEWENV --file environment.yml
pip install -r requirements.txt

I really don't understand why soundfile it's not working in the new environment even though it is set up exactly the same way. Any insights?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文