相关疑难解决方法(0)

用pip安装SciPy

它可以安装NumPy的PIP使用pip install numpy.

SciPy有类似的可能性吗?(做pip install scipy不起作用.)


更新

SciPy包现在可以安装了pip!

python install pip scipy

205
推荐指数
8
解决办法
34万
查看次数

ModuleNotFoundError:Python 3.9 中没有名为“scipy”的模块

我在 ubuntu 18.04 上运行 python3.9。我已经继续执行命令sudo apt-get install python-scipy并收到消息:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-scipy is already the newest version (0.19.1-2ubuntu1).
The following packages were automatically installed and are no longer required:
  linux-hwe-5.4-headers-5.4.0-42 linux-hwe-5.4-headers-5.4.0-53
  linux-hwe-5.4-headers-5.4.0-56 linux-hwe-5.4-headers-5.4.0-58
  linux-hwe-5.4-headers-5.4.0-59 linux-hwe-5.4-headers-5.4.0-60
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Run Code Online (Sandbox Code Playgroud)

然而,当我尝试运行使用的 python3.9 代码时from scipy import integrate,我收到错误:

ModuleNotFoundError: No module named 'scipy'
Run Code Online (Sandbox Code Playgroud)

我已经阅读了这篇文章并尝试使用卸载和安装 …

python scipy

5
推荐指数
1
解决办法
1万
查看次数

Joblib.load 错误:没有名为“scipy.sparse._csr”的模块

  • Python版本: 3.7(我必须使用这个版本)
  • 操作系统: Linux
  • 云平台: Azure
  • 资源: Azure 函数与 python
  • 目标:加载使用 sketch-learn 版本 1.0.2 创建的模型,并安装以下依赖项:

numpy:1.17.3 joblib:1.1.0 scipy:1.7.3

我正在使用 joblib 加载我训练的短剧学习模型(顺便说一句,我使用 python 3.9 在我的机器中本地创建了该模型)。但是,我收到以下错误:

Traceback (most recent call last):
File \"/home/site/wwwroot/sortierung/__init__.py\", line 51, in main
prediction_file_path)
File \"/home/site/wwwroot/shared_code/custom_functions_prediction.py\", line 255, in predict
result.update(classify_mail(m,s,X, stop_words, model_folder_path))
File \"/home/site/wwwroot/shared_code/custom_functions_prediction.py\", line 105, in classify_mail
model = load(modelFilePath)
File \"/home/site/wwwroot/.python_packages/lib/site-packages/joblib/numpy_pickle.py\", line 587, in load
obj = _unpickle(fobj, filename, mmap_mode)
File \"/home/site/wwwroot/.python_packages/lib/site-packages/joblib/numpy_pickle.py\", line 506, in _unpickle
obj = unpickler.load()
File \"/usr/local/lib/python3.7/pickle.py\", line 1088, in …
Run Code Online (Sandbox Code Playgroud)

python azure joblib azure-functions

2
推荐指数
1
解决办法
5784
查看次数

标签 统计

python ×3

scipy ×2

azure ×1

azure-functions ×1

install ×1

joblib ×1

pip ×1