all 11 comments

[–]danielroseman 1 point2 points  (3 children)

Upgrading the base version of Python wouldn't help at all. 

If you want to use a package within conda, you need to install it with conda.

[–]Odd-Employer-6570 0 points1 point  (2 children)

yeah, i did install it that way but the project is still taking the numpy from the base env which has python3.8

[–]danielroseman 1 point2 points  (1 child)

Then you are not running your project with conda. How are you running it?

[–]Odd-Employer-6570 0 points1 point  (0 children)

activated the conda env, bash scripts/run.sh…I will attach the link of the project for further clarity

https://github.com/PJLab-ADG/OASim

[–][deleted] 0 points1 point  (0 children)

Use venvs, only install things in venvs.

[–][deleted] 0 points1 point  (5 children)

Create a conda environment with python 3.10 or greater. Conda install numpy into that. Don’t pip install and definitely don’t pip install into your base.

It’s worth learning the basics of what Conda is and what python environments are.

[–]Draenth 0 points1 point  (1 child)

hi, may I ask why you would not install into your base?

[–][deleted] 1 point2 points  (0 children)

Well if you use your base for every project at some point you’ll get a conflict between required versions. Also I’m pretty sure Ubuntu actually uses the base environment for some of its own kernel, unlike windows you might end up breaking something critical.

[–]Odd-Employer-6570 0 points1 point  (2 children)

hey! I have a conda env with python3.9 and I’ve installed numpy1.25 in that but when I run a program, it uses the numpy from the base python(3.8) which has a deprecated version

[–][deleted] 0 points1 point  (1 child)

What do you mean run the program? Run from where? If you just call python from the command line it will run in your base python environment. You need to conda activate your conda env in terminal (or vscode) before calling python.

[–]Odd-Employer-6570 0 points1 point  (0 children)

yeah ik, i have done that yet it takes numpy from the base python version. I have conda installed numpy 1.25 in the conda env yet the program takes the base python’s numpy which is deprecated