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
4 Answers
I recommend you try this:
pip install --upgrade pip setuptools
Based on https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2990.
3 Comments
pip refers to a global installation then you have to use sudo. If pip is running from within a virtualenv then it should work without (as it is installed for your user only).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.
2 Comments
rm command. find will look for files (including link) containing pip3 in the name.upgrading setuptools didn't work for me. I did reinstall pip,
git clone https://github.com/pypa/pip.git
cd pip
python setup.py install
2 Comments
git clone https://github.com/pypa/pip.git -b release/9.0.3 --single-branch && cd pip && python setup.py installHad the same issue with pip install. The following worked for me.
easy_install pip
easy_install setuptools