0

I am using conda version 4.9.2 in ubuntu 18.04. I firstly create a new environment and then try to install a package but surprisingly this package already exists but there but when I try o import it in my jupyter notebook, I face the following error:

ImportError: libX11.so.6: cannot open shared object file: No such file or directory

I have no idea why this package exist there. When I look for it, it is in the following folder:

/home/My_UBU/snap/jupyter/common/lib/python3.7/site-packages

When I create any new environment (conda create --name my_env), if I check envs of my miniconda3, it has only one folder named conda-meta which has also one file named history. Installed packages are going somewhere else rather than my environment. I do appreciate any help to solve my issue with conda in ubuntu.

1

Are you sure that you've activated your conda environment?

try the command

conda env list

to see what environments you have created on your machine.

The name of the environment is in the first column, and the path where the environment is maintained in the last column.

There should be an asterisk next to your default conda environment.

Take a look at your lists and activate the environment from the command line substituting your chosen environment name

conda activate my_env

Once your environment is set, you should be able to issue all the commands you need to maintain it

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.