Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

screen inside the conda environment doesnt work

Tags:

If I am inside a conda environment which has lets say tensorflow installed and if I go to screen and then python -c "import tensorflow";, it says module not found. However it works well without screen.

like image 654
rgaut Avatar asked May 29 '18 19:05

rgaut


People also ask

Can I use pip inside conda?

You can install pip in the current conda environment with the command conda install pip , as discussed in Using pip in an environment. If there are instances of pip installed both inside and outside the current conda environment, the instance of pip installed inside the current conda environment is used.


1 Answers

I have the same problem: I activated one of my conda environments, let's say my_env, and I can use tensorflow in my_env. Then, I go to screen. Here, I can no longer import tensorflow. This is weird because within the screen, I still see my_env activated in "conda env list" or tensorflow listed in "conda list".

One workaround for me was to deactivate that environment before going into screen. After going into screen I activate my_env. Then, I was able to use tensorflow included in that my_env.

like image 95
jhch Avatar answered Sep 30 '22 19:09

jhch