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
CodePudding user response:
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.
CodePudding user response:
You can do the following to ensure you have desired numpy version:
- Activate your local environment
- Uninstall any previously installed
numpyversion by using:
pip uninstall numpy
- Install the desired
numpyversion:
pip install numpy=1.19.5
- Check the installed version of
numpy:
pip freeze
If you want to export the package list use:
pip freeze > requirements.txt
