如何使用miniforge更改numpy版本
我已经在Mac上安装了Miniforge,其中使用了Jupyter笔记本上的“本地env”。我无法在此内核上更改Numpy版本(需要降级到1.19.5),已经尝试了: (1)pip安装numpy == 1.19.5& (2)conda安装-c conda -forge numpy = 1.19.5。
Numpy版本似乎在Conda-Ipython3内核上很容易变化,但是我的项目
在所有这些方面都在“本地env”上运行,但仍在学习。请帮忙
I have installed miniforge on my mac , in that using a 'local env' on jupyter notebook. I can't change the numpy version (need to downgrade to 1.19.5) on this kernel, have tried:
(1)pip install numpy==1.19.5 &
(2)conda install -c conda-forge numpy=1.19.5.
numpy version seems to be changing easily on conda-ipython3 kernel, but my project is running on 'local env'
very new to all this, still learning. Please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先确保通过运行激活您的本地环境:
.../{您的VENV文件夹路径}/scripts/activate
。因为如果您在错误的虚拟环境上安装numpy,则它将无法正常工作。然后通过运行
pip卸载numpy
来卸载numpy。然后安装所需的numpy版本。first make sure that your local environment is activated by running:
.../{your venv folder path}/Scripts/activate
. Because if you install numpy on the wrong virtual environment then it won't work.Then uninstall numpy by running
pip uninstall numpy
. Then install the numpy version you want.您可以执行以下操作以确保所需的
numpy
版本:numpy
numpy
的已安装版本:如果要导出软件包列表,请使用:
You can do the following to ensure you have desired
numpy
version:numpy
version by using:numpy
version:numpy
:If you want to export the package list use: