AttributeError: '_NamespacePath' object has no attribute 'sort'

I downloaded anaconda, and when you try to start jupyter notebook using cmd, the error appears as an AttributeError object: '_NamespacePath' does not have the attribute 'sort'. I run jypyter by typing jupyter notebook in cmd in windows os. Thanks for solving my mistake.

+4
source share
4 answers

I recommend you try the following:

pip install --upgrade pip setuptools

Based on https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2990 .

+17
source

Updating setuptools did not work for me. I reinstalled pip,

git clone https://github.com/pypa/pip.git
cd pip
python setup.py install
+4
source

pip. .

easy_install pip
easy_install setuptools

https://github.com/pypa/setuptools/issues/885

+2

Ubuntu 16.04.

pip3 sudo apt-get purge --auto-remove python3-pip pip3, sudo find . -name 'pip3' .

, rm. /clone pip . python3 setup.py install. - .

+1

Source: https://habr.com/ru/post/1673815/


All Articles