Thanks for reading.
I do need your help.
I wanted to install google-cloud-speech, so I typed
'pip install google-cloud-speech'
in cmd.exe(Windows 10)
but error occured.
Is there any proper way to solve this, please let me know it.
Thanks.
Collecting google-cloud-speech
Using cached google_cloud_speech-0.32.0-py2.py3-none-any.whl
Collecting requests<3.0dev,>=2.18.4 (from google-cloud-speech)
Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting googleapis-common-protos[grpc]<2.0dev,>=1.5.2 (from google-cloud-speech)
Using cached googleapis-common-protos-1.5.3.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\developer\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\developer\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\developer\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 3017, in <module>
#_call_aside
File "c:\users\developer\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 3003, in _call_aside
f(*args, **kwargs)
File "c:\users\developer\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\developer\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2577, in activate
declare_namespace(pkg)
File "c:\users\developer\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\developer\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\developer\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\DEVELO~1\AppData\Local\Temp\pip-build-91vxtz3t\googleapis-common-protos\
I had the same problem as you and found a solution on the Google Platform Git.
In my case, it was because pip was not up-to-date. Just do :
pip install --upgrade pip
pip install --upgrade setuptools
pip install google-cloud
Related
I just wanted to install the lang package.
The problem here is that I have spent ages installing countless packages and don't want to do it all again. I'm no great expert at python package management and I'd rather not need to become one. This happened because I cut and pasted an answer from Stack Overflow in the naive hope that it was actually correct (see below).
Is there a way to simply remove the pip installation and keep the installed package information and then re-install pip3 again using the old package info?
I imagine that pip must keep the package info in some database, so possibly I can copy that out, re-install a fresh pip and then copy back the package data?
~/Dropbox/Projects/FileSorting/ScreenShotSorter $ pip3 install lang
Collecting lang
Downloading lang-1.0.5.tar.gz (5.7 kB)
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python#3.8/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/01/gll908b94ll0m5mzltylkp4w0000gn/T/pip-install-y291uctu/lang/setup.py'"'"'; __file__='"'"'/private/var/folders/01/gll908b94ll0m5mzltylkp4w0000gn/T/pip-install-y291uctu/lang/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/01/gll908b94ll0m5mzltylkp4w0000gn/T/pip-install-y291uctu/lang/pip-egg-info
cwd: /private/var/folders/01/gll908b94ll0m5mzltylkp4w0000gn/T/pip-install-y291uctu/lang/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/01/gll908b94ll0m5mzltylkp4w0000gn/T/pip-install-y291uctu/lang/setup.py", line 14, in <module>
with open(path.join(here, '..', 'README.md'), encoding='utf-8') as f:
File "/usr/local/Cellar/python#3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/codecs.py", line 905, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/01/gll908b94ll0m5mzltylkp4w0000gn/T/pip-install-y291uctu/lang/../README.md'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
(That's weird how am I supposed to fix that? Maybe pip is out of date? I don't remember the upgrade command so I'll just get it from Stack Overflow.)
~/Dropbox/Projects/FileSorting/ScreenShotSorter $ sudo -H pip3 install --upgrade pip
(It's totally not obvious that it's not going to upgrade the right version of pip and that's going to break everything.)
Password:
Collecting pip
Downloading pip-20.2.2-py2.py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 1.7 MB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.0.2
Uninstalling pip-20.0.2:
Successfully uninstalled pip-20.0.2
Successfully installed pip-20.2.2
~/Dropbox/Projects/FileSorting/ScreenShotSorter $ sudo -H pip3 install --upgrade pip3
(Maybe it's supposed to be pip3 that should have been upgraded here?)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 584, in _build_master
ws.require(__requires__)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 901, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 792, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (pip 20.2.2 (/usr/local/lib/python3.8/site-packages), Requirement.parse('pip==20.0.2'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/opt/python#3.8/bin/pip3", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3255, in <module>
def _initialize_master_working_set():
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3238, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3267, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 586, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 599, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 787, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==20.0.2' distribution was not found and is required by the application
~/Dropbox/Projects/FileSorting/ScreenShotSorter $ pip3 install lang
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 584, in _build_master
ws.require(__requires__)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 901, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 792, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (pip 20.2.2 (/usr/local/lib/python3.8/site-packages), Requirement.parse('pip==20.0.2'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/opt/python#3.8/bin/pip3", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3255, in <module>
def _initialize_master_working_set():
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3238, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3267, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 586, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 599, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 787, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==20.0.2' distribution was not found and is required by the application
~/Dropbox/Projects/FileSorting/ScreenShotSorter $ which pip
/usr/local/bin/pip
~/Dropbox/Projects/FileSorting/ScreenShotSorter $ sudo pip uninstall pip
(Perhaps getting rid of the bogus version of pip would help?)
WARNING: The directory '/Users/xxx/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Found existing installation: pip 20.2.2
Uninstalling pip-20.2.2:
Would remove:
/usr/local/bin/pip
/usr/local/bin/pip3
/usr/local/bin/pip3.8
/usr/local/lib/python3.8/site-packages/pip-20.2.2.dist-info/*
/usr/local/lib/python3.8/site-packages/pip/*
Proceed (y/n)? y
Successfully uninstalled pip-20.2.2
~/Dropbox/Projects/FileSorting/ScreenShotSorter $ pip3
Traceback (most recent call last):
File "/usr/local/opt/python#3.8/bin/pip3", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3255, in <module>
def _initialize_master_working_set():
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3238, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3267, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 584, in _build_master
ws.require(__requires__)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 901, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 787, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==20.0.2' distribution was not found and is required by the application
~/Dropbox/Projects/FileSorting/ScreenShotSorter $ which pip3
/usr/local/opt/python#3.8/bin/pip3
~/Dropbox/Projects/FileSorting/ScreenShotSorter $ pip
zsh: command not found: pip
~/Dropbox/Projects/FileSorting/ScreenShotSorter $ which python3
/usr/local/opt/python#3.8/bin/python3
~/Dropbox/Projects/FileSorting/ScreenShotSorter $ pip3 uninstall pip3
Traceback (most recent call last):
File "/usr/local/opt/python#3.8/bin/pip3", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3255, in <module>
def _initialize_master_working_set():
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3238, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3267, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 584, in _build_master
ws.require(__requires__)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 901, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 787, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==20.0.2' distribution was not found and is required by the application
~/Dropbox/Projects/FileSorting/ScreenShotSorter $ find / -name pip 2>/dev/null
/usr/local/lib/python3.6/site-packages/pip
/usr/local/lib/python3.7/site-packages/pip
/usr/local/lib/python2.7/site-packages/pip
/usr/local/Cellar/python#2/2.7.15_3/bin/pip
/usr/local/Cellar/python#2/2.7.15_3/libexec/pip
/usr/local/Cellar/python#2/2.7.15_3/libexec/pip/build/lib/pip
/usr/local/Cellar/python#2/2.7.15_3/libexec/pip/src/pip
/usr/local/Cellar/python/3.7.6_1/libexec/pip
/usr/local/Cellar/python/3.7.6_1/libexec/pip/src/pip
/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/share/doc/python3.7/examples/Tools/msi/pip
/usr/local/Cellar/python#3.8/3.8.2/libexec/bin/pip
/usr/local/Cellar/python#3.8/3.8.2/libexec/pip
/usr/local/Cellar/python#3.8/3.8.2/libexec/pip/build/lib/pip
/usr/local/Cellar/python#3.8/3.8.2/libexec/pip/src/pip
/usr/local/Cellar/python#3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/share/doc/python3.8/examples/Tools/msi/pip
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages/pip
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pip
/Library/Python/2.7/site-packages/pip-19.2.2-py2.7.egg/pip
/System/Volumes/Data/usr/local/lib/python3.6/site-packages/pip
/System/Volumes/Data/usr/local/lib/python3.7/site-packages/pip
/System/Volumes/Data/usr/local/lib/python2.7/site-packages/pip
/System/Volumes/Data/usr/local/Cellar/python#2/2.7.15_3/bin/pip
/System/Volumes/Data/usr/local/Cellar/python#2/2.7.15_3/libexec/pip
/System/Volumes/Data/usr/local/Cellar/python#2/2.7.15_3/libexec/pip/build/lib/pip
/System/Volumes/Data/usr/local/Cellar/python#2/2.7.15_3/libexec/pip/src/pip
/System/Volumes/Data/usr/local/Cellar/python/3.7.6_1/libexec/pip
/System/Volumes/Data/usr/local/Cellar/python/3.7.6_1/libexec/pip/src/pip
/System/Volumes/Data/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/share/doc/python3.7/examples/Tools/msi/pip
/System/Volumes/Data/usr/local/Cellar/python#3.8/3.8.2/libexec/bin/pip
/System/Volumes/Data/usr/local/Cellar/python#3.8/3.8.2/libexec/pip
/System/Volumes/Data/usr/local/Cellar/python#3.8/3.8.2/libexec/pip/build/lib/pip
/System/Volumes/Data/usr/local/Cellar/python#3.8/3.8.2/libexec/pip/src/pip
/System/Volumes/Data/usr/local/Cellar/python#3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/share/doc/python3.8/examples/Tools/msi/pip
/System/Volumes/Data/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages/pip
/System/Volumes/Data/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pip
/System/Volumes/Data/Library/Python/2.7/site-packages/pip-19.2.2-py2.7.egg/pip
/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages/pip
/Users/robotbugs/Library/Caches/pip
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages/pip
~/Dropbox/Projects/FileSorting/ScreenShotSorter $ echo "What the f__k\!"
(What's with all these python versions - I thought I was using 3.8?)
What the f__k!
Hey guys I think my pip3 has just hit a snag. Can somebody help me with this.
I ran this command:
pip3 install tensorflow
And it gave this as an output:
This output is not only with tensorflow package but with any package i try to install with pip3.
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
from pip import main
File "/home/het/.local/lib/python3.5/site-packages/pip/__init__.py", line 26, in <module>
from pip.utils import get_installed_distributions, get_prog
File "/home/het/.local/lib/python3.5/site-packages/pip/utils/__init__.py", line 27, in <module>
from pip._vendor import pkg_resources
File "/home/het/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3018, in <module>
#_call_aside
File "/home/het/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3004, in _call_aside
f(*args, **kwargs)
File "/home/het/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3046, in _initialize_master_working_set
dist.activate(replace=False)
File "/home/het/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2578, in activate
declare_namespace(pkg)
File "/home/het/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2152, in declare_namespace
_handle_ns(packageName, path_item)
File "/home/het/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2092, in _handle_ns
_rebuild_mod_path(path, packageName, module)
File "/home/het/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2121, in _rebuild_mod_path
orig_path.sort(key=position_in_sys_path)
AttributeError: '_NamespacePath' object has no attribute 'sort'
What can be the reason
Edit: pip works just fine but pip3 doesn't work
Try update pip and setuptools
pip3 install --upgrade pip setuptools
Also, the best way is using virtualenv
You are using the wrong syntax. Just try pip install tensorflow in command prompt and everything should run smoothly. I tried at my end and it worked. Refer attached image. See the first few lines and the last few lines.
This question already has answers here:
Pip does not work after upgrade to ubuntu-16.10
(3 answers)
Closed 5 years ago.
I am trying to install h5py and execute sudo
pip3 install h5py
I also tried to install h5py via wheel from https://pypi.python.org/pypi/h5py/2.7.0rc2
I have python 3.5 installed. And pip3 then crashes with this output:
Traceback (most recent call last):
File "/usr/local/bin/pip3", line 7, in <module>
from pip import main
File "/usr/local/lib/python3.5/dist-packages/pip/__init__.py", line 26, in <module>
from pip.utils import get_installed_distributions, get_prog
File "/usr/local/lib/python3.5/dist-packages/pip/utils/__init__.py", line 27, in <module>
from pip._vendor import pkg_resources
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 3018, in <module>
#_call_aside
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 3004, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 3046, in _initialize_master_working_set
dist.activate(replace=False)
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 2578, in activate
declare_namespace(pkg)
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 2152, in declare_namespace
_handle_ns(packageName, path_item)
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 2092, in _handle_ns
_rebuild_mod_path(path, packageName, module)
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 2121, in _rebuild_mod_path
orig_path.sort(key=position_in_sys_path)
AttributeError: '_NamespacePath' object has no attribute 'sort'
I'm running on Ubuntu 16.04.3 LTS
I don't think pip3 is broken because I installed a lot with pip3 before.
What can I do?
Thanks a lot.
I would start by not using sudo to install, but use an virtualenv. I use virtualenvwrapper personally. Following works fine for me locally.
$ mkvirtualenv bla --python=python3 # Random naming
# Env is activated right away
$ pip3 install h5py
Collecting h5py
Downloading h5py-2.7.1-cp35-cp35m-manylinux1_x86_64.whl (5.3MB)
100% |████████████████████████████████| 5.3MB 340kB/s
Collecting six (from h5py)
Using cached six-1.11.0-py2.py3-none-any.whl
Collecting numpy>=1.7 (from h5py)
Downloading numpy-1.14.0-cp35-cp35m-manylinux1_x86_64.whl (17.1MB)
100% |████████████████████████████████| 17.1MB 118kB/s
Installing collected packages: six, numpy, h5py
Successfully installed h5py-2.7.1 numpy-1.14.0 six-1.11.0
I am trying to install pyzmail for Python 3.4. I am using Visual Studio Community Edition (Windows) but have also tried to install using the command line and get the following dump:
----- Installing 'pyzmail' -----
Collecting pyzmail
Using cached pyzmail-1.0.3.tar.gz
Collecting distribute (from pyzmail)
Using cached distribute-0.7.3.zip
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\distribute.egg-info
writing requirements to pip-egg-info\distribute.egg-info\requires.txt
writing top-level names to pip-egg-info\distribute.egg-info\top_level.txt
writing dependency_links to pip-egg-info\distribute.egg-info\dependency_links.txt
writing pip-egg-info\distribute.egg-info\PKG-INFO
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Temp\pip-build-v5zvr2p3\distribute\pkg_resources.py", line 2680, in _dep_map
return self.__dep_map
File "C:\Users\user\AppData\Local\Temp\pip-build-v5zvr2p3\distribute\pkg_resources.py", line 2525, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\user\AppData\Local\Temp\pip-build-v5zvr2p3\distribute\setup.py", line 58, in <module>
setuptools.setup(**setup_params)
File "C:\Python34\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Python34\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\user\AppData\Local\Temp\pip-build-v5zvr2p3\distribute\setuptools\command\egg_info.py", line 177, in run
writer = ep.load(installer=installer)
File "C:\Users\user\AppData\Local\Temp\pip-build-v5zvr2p3\distribute\pkg_resources.py", line 2241, in load
if require: self.require(env, installer)
File "C:\Users\user\AppData\Local\Temp\pip-build-v5zvr2p3\distribute\pkg_resources.py", line 2254, in require
working_set.resolve(self.dist.requires(self.extras),env,installer)))
File "C:\Users\user\AppData\Local\Temp\pip-build-v5zvr2p3\distribute\pkg_resources.py", line 2471, in requires
dm = self._dep_map
File "C:\Users\user\AppData\Local\Temp\pip-build-v5zvr2p3\distribute\pkg_resources.py", line 2682, in _dep_map
self.__dep_map = self._compute_dependencies()
File "C:\Users\user\AppData\Local\Temp\pip-build-v5zvr2p3\distribute\pkg_resources.py", line 2699, in _compute_dependencies
from _markerlib import compile as compile_marker
ImportError: No module named '_markerlib'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\user\AppData\Local\Temp\pip-build-v5zvr2p3\distribute\
----- Failed to install 'pyzmail' -----
After Googling, I checked I had the ez_setup and setuptools modules installed, which I do. Any help would be much appreciated!
I've been able to reproduce your problem, and you're right, using pip install pyzmail wont' be good (pyzmail's installer is buggy) so i've tried this instead:
easy_install pyzmail
And it succeed, then I could just import pyzmail without any problem.
You can also try installing the pyzmail36 fork, which installs the same modules for Python 3.6 and later: pip install pyzmail36 on Windows and pip3 install pyzmail36 on Linux and macOS.
You can try easy_install pyzmail
That worked for me in 2020.
Whenever I try to install anything using pip I get the following error:
$ sudo pip install --upgrade pip
Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in <module>
load_entry_point('pip==7.0.3', 'console_scripts', 'pip')()
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 558, in load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2682, in load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2355, in load
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2361, in resolve
File "/usr/local/lib/python2.7/site-packages/pip-7.0.3-py2.7.egg/pip/__init__.py", line 15, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/local/lib/python2.7/site-packages/pip-7.0.3-py2.7.egg/pip/vcs/subversion.py", line 9, in <module>
from pip.index import Link
File "/usr/local/lib/python2.7/site-packages/pip-7.0.3-py2.7.egg/pip/index.py", line 30, in <module>
from pip.wheel import Wheel, wheel_ext
File "/usr/local/lib/python2.7/site-packages/pip-7.0.3-py2.7.egg/pip/wheel.py", line 35, in <module>
from pip._vendor.distlib.scripts import ScriptMaker
File "/usr/local/lib/python2.7/site-packages/pip-7.0.3-py2.7.egg/pip/_vendor/__init__.py", line 92, in load_module
raise ImportError("No module named '%s'" % (name,))
ImportError: No module named 'pip._vendor.distlib.scripts'
This also happens when I try to upgrade pip, install sphinx or basically any install/upgrade option using pip.
I am running Ubuntu 15.10 and using Python 2.7.10
StackOverflow has said this is a duplicate, and that there is a solution at ImportError: No module named 'pip._vendor.distlib.scripts' when I try to install fabric by python pip however the recommend solution on this post is not actually a soltuion. It does not solve my issue, nor does it appear to solve the original posters problem.
Try this:
sudo pip install --upgrade --no-use-wheel pip