google-cloud-python: Command "python setup.py egg_info" failed with error code 1 in C:\Users\sanja\AppData\Local\Temp\pip-build-ppc44asr\googleapis-common-protos\
- Windows 10
- Python 3.6.2
- N/A
- Stacktrace
C:\Users\sanja\Desktop\Sapphire\api>pip install --upgrade gcloud
Collecting gcloud
Downloading gcloud-0.18.3.tar.gz (454kB)
100% |████████████████████████████████| 460kB 1.0MB/s
Requirement already up-to-date: httplib2>=0.9.1 in c:\users\sanja\appdata\local\programs\python\python36-32\lib\site-packages (from gcloud)
Collecting googleapis-common-protos (from gcloud)
Using cached googleapis-common-protos-1.5.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\sanja\appdata\local\programs\python\python36-32\lib\site-packages\setuptools\__init__.py", line 10, in <module>
from setuptools.extern.six.moves import filter, filterfalse, map
File "c:\users\sanja\appdata\local\programs\python\python36-32\lib\site-packages\setuptools\extern\__init__.py", line 1, in <module>
from pkg_resources.extern import VendorImporter
File "c:\users\sanja\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 3017, in <module>
@_call_aside
File "c:\users\sanja\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 3003, in _call_aside
f(*args, **kwargs)
File "c:\users\sanja\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 3045, in _initialize_master_working_set
dist.activate(replace=False)
File "c:\users\sanja\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2577, in activate
declare_namespace(pkg)
File "c:\users\sanja\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2151, in declare_namespace
_handle_ns(packageName, path_item)
File "c:\users\sanja\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2091, in _handle_ns
_rebuild_mod_path(path, packageName, module)
File "c:\users\sanja\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2120, in _rebuild_mod_path
orig_path.sort(key=position_in_sys_path)
AttributeError: '_NamespacePath' object has no attribute 'sort'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\sanja\AppData\Local\Temp\pip-build-ppc44asr\googleapis-common-protos\
- Refer to
#6 pip install gcloudorpip install --upgrade gcloud
Looking for a solution, Thanks in advance.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 27 (7 by maintainers)
@Sanjay-B You have an out of date version of
setuptools, sorry for the inconvenience (and hard to understand error).Simply
pip install --upgrade setuptoolsIf it doesn’t work, we can re-open and discuss. Pre-emptively closing since the issue seems clear.
ma ka bhosara koi batayega dhang se sab kar liya phir v error aa rha
@rahul6612 Please mind your language. Contributors and users of these libraries are not sitting idle and their purpose is not solely to support your problems. Because people all over the world speaking and writing different languages interact on this thread does not mean that you can get away with using verbal abuse. Please maintain an etiquette next time and have patience when seeking help in a public forum.
sudo apt-get install python3.6-dev libmysqlclient-dev
Side note: Also occurs when installing pyrebase through pip (
pip install pyrebase).Hi guys! I need to run “pip install matplotlib” from a Windows command prompt to install matplotlib. I need that because in python I should run the following:
import matplotlib.pyplot as plt plt.plot([0, 0.25, 1], [0, 1, 0.5], “r-”) plt.plot([0.25, 0.5, 1.5, 1], [0.5, 1.0, 0.5, 0], “go”) plt.show()
But “pip install matplotlib” i cmd leads to an error code 1, i.e. there is no permission.

I did follow previous recommendations for solving this but no luck.
I need help
Thanks in advance!