I downloaded anaconda and when try to launch jupyter notebook using cmd, the error appear as AttributeError: '_NamespacePath' object has no attribute 'sort'. I am launching jypyter by typing jupyter notebook in cmd in windows os. Thanks for solving my error
16
votes
4 Answers
37
votes
I recommend you try this:
pip install --upgrade pip setuptools
Based on https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2990.
9
votes
This worked for me on Ubuntu 16.04.
Uninstall pip3
sudo apt-get purge --auto-remove python3-pipGo to your home directory
cd $HOMESearch for any other pip3 links
sudo find . -name 'pip3'Delete all the links using
rmif any were foundDownload/Clone pip from here (via
gitfor example)git clone https://github.com/pypa/pipGo to the downloaded directory
cd pipInstall pip3 (you might need to add
sudoin front of it)python3 setup.py install
This will install the latest version of pip and remove the error without loss of any packages.
4
votes