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
I recommend you try this:
pip install --upgrade pip setuptools
Based on https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2990.
This worked for me on Ubuntu 16.04.
Uninstall pip3
sudo apt-get purge --auto-remove python3-pip
Go to your home directory
cd $HOME
Search for any other pip3 links
sudo find . -name 'pip3'
Delete all the links using rm
if any were found
Download/Clone pip from here (via git
for example)
git clone https://github.com/pypa/pip
Go to the downloaded directory
cd pip
Install pip3 (you might need to add sudo
in front of it)
python3 setup.py install
This will install the latest version of pip and remove the error without loss of any packages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With