Community
cancel
Showing results for 
Search instead for 
Did you mean: 
sree__harsha
Beginner
193 Views

Not able to install packages in Jupyter Notebook

used

pip install seaborn --user

 

got the following error message

 

u38476@s001-n061:~$ pip install seaborn --user
Traceback (most recent call last):
  File "/glob/intel-python/python3/bin/pip", line 4, in <module>
    import pip
  File "/glob/intel-python/versions/2018u2/intelpython3/lib/python3.6/site-packages/pip/__init__.py", line 26, in <module>
    from pip.utils import get_installed_distributions, get_prog
  File "/glob/intel-python/versions/2018u2/intelpython3/lib/python3.6/site-packages/pip/utils/__init__.py", line 27, in <module>
    from pip._vendor import pkg_resources
  File "/glob/intel-python/versions/2018u2/intelpython3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3018, in <module>
    @_call_aside
  File "/glob/intel-python/versions/2018u2/intelpython3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3004, in _call_aside
    f(*args, **kwargs)
  File "/glob/intel-python/versions/2018u2/intelpython3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3046, in _initialize_master_working_set
    dist.activate(replace=False)
  File "/glob/intel-python/versions/2018u2/intelpython3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2578, in activate
    declare_namespace(pkg)
  File "/glob/intel-python/versions/2018u2/intelpython3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2152, in declare_namespace
    _handle_ns(packageName, path_item)
  File "/glob/intel-python/versions/2018u2/intelpython3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2092, in _handle_ns
    _rebuild_mod_path(path, packageName, module)
  File "/glob/intel-python/versions/2018u2/intelpython3/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2121, in _rebuild_mod_path
    orig_path.sort(key=position_in_sys_path)
AttributeError: '_NamespacePath' object has no attribute 'sort'
u38476@s001-n061:~$ import pip

Command 'import' not found, but can be installed with:

apt install imagemagick-6.q16                
apt install graphicsmagick-imagemagick-compat
apt install imagemagick-6.q16hdri            

Ask your administrator to install one of them.

u38476@s001-n061:~$ 

Tags (1)
0 Kudos
4 Replies
JananiC_Intel
Moderator
193 Views

Hi,

Thanks for reaching out.

Create an environment using

conda create --name envname

After creating the environment check the python path of that environment using below command.

which python

If it shows /glob path, kindly change $PATH to your current conda environment as below

export PATH="/home/uxxxx/.conda/envs/envname/bin":$PATH

Finally install seaborn library in that environment using 

pip install seaborn --user

Hope this helps!

JananiC_Intel
Moderator
193 Views

Hi,

Was the information provided helpful?Could you give us an update?

sree__harsha
Beginner
193 Views

yes. Thank you

JananiC_Intel
Moderator
193 Views

Hi,

Thanks for the confirmation we are closing the case.

Reply