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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With