I am unable to install pyttsx3 package using pip.
I tried pip install pyttsx3 but was unable to install it.
C:\Users\yashr\Desktop\SOFTWARES\brother> pip install pyttsx3
Collecting pyttsx3
Using cached https://files.pythonhosted.org/packages/f4/20/f6c582c5f2735ca5c55ae52f1ddbc7447fb3565b5ac2fdc24a8d534f4aa1/pyttsx3-2.84-py3-none-any.whl
Collecting pyobjc>=2.4 (from pyttsx3)
Using cached https://files.pythonhosted.org/packages/b1/c9/83b256bb7f771a9e4232518005d6f237ae79215283cf5ea234141751b36a/pyobjc-6.1-py3-none-any.whl
Collecting comtypes; "win32" in sys_platform (from pyttsx3)
Using cached https://files.pythonhosted.org/packages/fb/b8/f8aa21774acb4535e32f6a89055876ca497ff806f9b1b1912b469284a61e/comtypes-1.1.7.zip
Collecting pyobjc-framework-WebKit==6.1 (from pyobjc>=2.4->pyttsx3)
Using cached https://files.pythonhosted.org/packages/f1/64/353b9512c0dddb0159a17a231a9e3bdb594d7d891ffd74d0b26ee629d7b3/pyobjc-framework-WebKit-6.1.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\yashr\AppData\Local\Temp\pip-install-hxvtccap\pyobjc-framework-WebKit\setup.py", line 27, in <module>
for fn in os.listdir("Modules")
File "C:\Users\yashr\AppData\Local\Temp\pip-install-hxvtccap\pyobjc-framework-WebKit\pyobjc_setup.py", line 408, in Extension
os_level = get_os_level()
File "C:\Users\yashr\AppData\Local\Temp\pip-install-hxvtccap\pyobjc-framework-WebKit\pyobjc_setup.py", line 218, in get_os_level
pl = plistlib.readPlist("/System/Library/CoreServices/SystemVersion.plist")
File "c:\users\yashr\appdata\local\programs\python\python37\lib\plistlib.py", line 99, in readPlist
with _maybe_open(pathOrFile, 'rb') as fp:
File "c:\users\yashr\appdata\local\programs\python\python37\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "c:\users\yashr\appdata\local\programs\python\python37\lib\plistlib.py", line 82, in _maybe_open
with open(pathOrFile, mode) as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/System/Library/CoreServices/SystemVersion.plist'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\yashr\AppData\Local\Temp\pip-install-hxvtccap\pyobjc-framework-WebKit\
You are using pip version 19.0.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
I would appreciate some help regarding the installation of pyttsx3 package.
Try the following command:
pip install git+git://github.com/nateshmbhat/pyttsx3.git
From here.
If you are on a mac then try pip3 install pyttsx3 . If you are on windows then try pasting this into the terminal - pip install git+git://github.com/nateshmbhat/pyttsx3.git
If that doesn't work - then check the PyPa Documentation and they will explain in a much better way .
Please use below command.
conda install -c auto pyttsx
Related
When I commanded pip install d3 to install the package, I got the following error.
(upload) Seungchului-MacBook-Pro:upload sclee$ pip3 install d3
Collecting d3
Using cached https://files.pythonhosted.org/packages/c9/20/aee1da98c819523d1c36f32232f28045cddba6f3411094fa5aa548f3db74/d3-0.1.0.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/w7/1l0pttwd5yg7nqn1j53l33mh0000gn/T/pip-install-kswsp3yr/d3/setup.py", line 8, in <module>
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codecs.py", line 897, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/w7/1l0pttwd5yg7nqn1j53l33mh0000gn/T/pip-install-kswsp3yr/d3/README.rst'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/w7/1l0pttwd5yg7nqn1j53l33mh0000gn/T/pip-install-kswsp3yr/d3/
To resolve the issue, I tried to google it and found that pip install -U setuptools would solve the issue, however it didn't work to my case.
I also tried to command it by sudo but result is same.
My python version is 3.6.5. What is the problem? I need your help a lot.
Thanks.
You should run the pip3 command since you are using python 3.6.5 the command would be as follows:
pip3 install js.d3
Then once that is successful you can use the following:
from js.d3 import d3
d3.need()
This was straight from the Python Software Foundation Page which can be found here:Python_Software_Foundation_Page
pip install --upgrade setuptools
or
sudo pip install --upgrade setuptools
Are you looking for pip3 install js.d3
and use like- from js.d3 import d3
I have 2 python installations on my mac osx.
$ which python
/usr/bin/python
$ which python3
/Library/Frameworks/Python.framework/Versions/3.4/bin/python3
$ pip install --upgrade setuptools
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/37/06/754589caf971b0d2d48f151c2586f62902d93dc908e2fd9b9b9f6aa3c9dd/setuptools-40.6.3-py2.py3-none-any.whl (573kB)
100% |████████████████████████████████| 655kB 1.5MB/s
Installing collected packages: setuptools
Found existing installation: setuptools 2.1
Uninstalling setuptools-2.1:
Successfully uninstalled setuptools-2.1
Successfully installed setuptools-40.6.3
$ which pip
/Library/Frameworks/Python.framework/Versions/3.4/bin/pip
$ pip -V
pip 18.1 from /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip (python 3.4)
I can install modules with pip fine. for example
$ python3 -m pip install --user tensorflow
Successfully installed absl-py-0.6.1 astor-0.7.1 gast-0.2.0 grpcio-1.17.1 markdown-3.0.1 protobuf-3.6.1 tensorboard-1.12.1 tensorflow-1.12.0 termcolor-1.1.0 werkzeug-0.14.1
but when i try the same with pandas
$ python3 -m pip install --user pandas
it goes through till the end by collecting and downloading dependencies, but errors out with the following error.
Collecting pandas
Downloading https://files.pythonhosted.org/packages/08/01/803834bc8a4e708aedebb133095a88a4dad9f45bbaf5ad777d2bea543c7e/pandas-0.22.0.tar.gz (11.3MB)
100% |████████████████████████████████| 11.4MB 1.5MB/s
Installing build dependencies ... done
Complete output from command python setup.py egg_info:
Download error on https://pypi.org/simple/numpy/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:600) -- Some packages may not be found!
Couldn't find index page for 'numpy' (maybe misspelled?)
Download error on https://pypi.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:600) -- Some packages may not be found!
No local packages or working download links found for numpy>=1.9.0
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/d5/k1w6m6xj5g727x952sdkkc1r0000gn/T/pip-install-r4n38agj/pandas/setup.py", line 743, in <module>
**setuptools_kwargs)
File "/private/var/folders/d5/k1w6m6xj5g727x952sdkkc1r0000gn/T/pip-build-env-fqe1gkak/lib/python3.4/site-packages/setuptools/__init__.py", line 142, in setup
_install_setup_requires(attrs)
File "/private/var/folders/d5/k1w6m6xj5g727x952sdkkc1r0000gn/T/pip-build-env-fqe1gkak/lib/python3.4/site-packages/setuptools/__init__.py", line 137, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/private/var/folders/d5/k1w6m6xj5g727x952sdkkc1r0000gn/T/pip-build-env-fqe1gkak/lib/python3.4/site-packages/setuptools/dist.py", line 586, in fetch_build_eggs
replace_conflicting=True,
File "/private/var/folders/d5/k1w6m6xj5g727x952sdkkc1r0000gn/T/pip-build-env-fqe1gkak/lib/python3.4/site-packages/pkg_resources/__init__.py", line 780, in resolve
replace_conflicting=replace_conflicting
File "/private/var/folders/d5/k1w6m6xj5g727x952sdkkc1r0000gn/T/pip-build-env-fqe1gkak/lib/python3.4/site-packages/pkg_resources/__init__.py", line 1063, in best_match
return self.obtain(req, installer)
File "/private/var/folders/d5/k1w6m6xj5g727x952sdkkc1r0000gn/T/pip-build-env-fqe1gkak/lib/python3.4/site-packages/pkg_resources/__init__.py", line 1075, in obtain
return installer(requirement)
File "/private/var/folders/d5/k1w6m6xj5g727x952sdkkc1r0000gn/T/pip-build-env-fqe1gkak/lib/python3.4/site-packages/setuptools/dist.py", line 653, in fetch_build_egg
return cmd.easy_install(req)
File "/private/var/folders/d5/k1w6m6xj5g727x952sdkkc1r0000gn/T/pip-build-env-fqe1gkak/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 673, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('numpy>=1.9.0')
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/d5/k1w6m6xj5g727x952sdkkc1r0000gn/T/pip-install-r4n38agj/pandas/
The issue seems to be that it is using Python where it should be using python3 in python setup.py egg_info
how do i make sure that pip uses python3 in the scripts or if there is any other issues ?
You can use any code given below
pip3 install pandas --no-build-isolation
OR
sudo apt-get install python3-pip
sudo -H pip3 install pandas
OR
sudo pip install pandas
OR
pip install --user pandas
and for mac terminal using mojave works like
pip3 install pandas
or
pip 3 install --upgrade pip
after
pip install pandas
From last couple of day, I am trying to install the pyproj package of python using pip. But I am getting the below quoted error. I have tried all the relevant solution available but was unable to install it.
Thanks in Advance
C:\Users\ashujaimini\PycharmProjects\untitled1>pip install Pillow
Requirement already satisfied (use --upgrade to upgrade): Pillow in c:\users\ashujaimini\anaconda3\lib\site-packages
C:\Users\ashujaimini\PycharmProjects\untitled1>pip install pyproj
Collecting pyproj
Using cached pyproj-1.9.5.1.tar.gz
Complete output from command python setup.py egg_info:
using bundled proj4..
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ASHUJA~1\AppData\Local\Temp\pip-build-nwtkvc3t\pyproj\setup.py", line 72, in <module>
objects = cc.compile(['nad2bin.c', 'src/pj_malloc.c'])
File "c:\users\ashujaimini\anaconda3\lib\distutils\_msvccompiler.py", line 317, in compile
self.initialize()
File "c:\users\ashujaimini\anaconda3\lib\distutils\_msvccompiler.py", line 210, in initialize
vc_env = _get_vc_env(plat_spec)
File "c:\users\ashujaimini\anaconda3\lib\distutils\_msvccompiler.py", line 85, in _get_vc_env
raise DistutilsPlatformError("Unable to find vcvarsall.bat")
distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat
**Command "python setup.py egg_info" failed with error code 1 in C:\Users\ASHUJA~1\AppData\Local\Temp\pip-build-nwtkvc3t\pyproj\**
Try this
easy_install pyproj
or
sudo easy_install pyproj
or download the tar file from pyproj and try to run
pip install [path to downloaded tar file]
Pyproj needs a compiler (vcvarsall.bat hints towards a Visual C in Windows), which you don't seem to have installed. Instead of installing from source, I suggest downloading a pre-compiled wheel and install the package from that.
You need dev tools for Python3.5
sudo apt-get update
sudo apt-get install python3.5-dev -y
pip install pyproj
if using Python3.6 need to update the second line.
I'm trying to download a python module from github using pip, but I seem to be running into problems upon download:
00000#ubuntu-00000:~/Desktop/Python/Blockchain.data$ pip install git+https://github.com/luke-jr/eloipool.git
You are using pip version 7.0.3, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting git+https://github.com/luke-jr/eloipool.git
Cloning https://github.com/luke-jr/eloipool.git to /tmp/pip-f159a1wz-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 18, in <module>
File "/home/00000/anaconda3/lib/python3.4/tokenize.py", line 438, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-f159a1wz-build/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-f159a1wz-build
Any insight into why this isn't installing?
I experienced a similar problem when installing selenium recently. Firstly upgrade your PIP. Then try installing what ever you are trying to install.
Module did not contain a setup.py file.
Ended up doing:
git clone https://ADDRESS .
When I do pip install statsmodels it gives me ImportError: statsmodels requires patsy. http://patsy.readthedocs.org, but then I run pip install patsy and it says its successful, but running pip install statsmodels still gives me same error about requiring patsy.
How can this be?
$ sudo pip install patsy
Requirement already satisfied (use --upgrade to upgrade): patsy in /Library/Python/2.7/site-packages/patsy-0.3.0-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): numpy in /Library/Python/2.7/site-packages/numpy-1.8.2-py2.7-macosx-10.9-intel.egg (from patsy)
Cleaning up...
$ sudo pip install statsmodels
Downloading/unpacking statsmodels
Downloading statsmodels-0.5.0.tar.gz (5.5MB): 5.5MB downloaded
Running setup.py (path:/private/tmp/pip_build_root/statsmodels/setup.py) egg_info for package statsmodels
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/private/tmp/pip_build_root/statsmodels/setup.py", line 463, in <module>
check_dependency_versions(min_versions)
File "/private/tmp/pip_build_root/statsmodels/setup.py", line 122, in check_dependency_versions
raise ImportError("statsmodels requires patsy. http://patsy.readthedocs.org")
ImportError: statsmodels requires patsy. http://patsy.readthedocs.org
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/private/tmp/pip_build_root/statsmodels/setup.py", line 463, in <module>
check_dependency_versions(min_versions)
File "/private/tmp/pip_build_root/statsmodels/setup.py", line 122, in check_dependency_versions
raise ImportError("statsmodels requires patsy. http://patsy.readthedocs.org")
ImportError: statsmodels requires patsy. http://patsy.readthedocs.org
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/tmp/pip_build_root/statsmodels
Storing debug log for failure in /Users/Jacob/Library/Logs/pip.log
What the error message doesn't tell you is that the module six not being there is really the problem.
Found this out by doing import patsy and having it fail and tell me that I needed six. So I did pip install six and now the patsy import worked, as did the pip install statsmodels.
For me:
$python3 -m pip install --upgrade patsy
$python3 -m pip install statsmodels
worked!
For anyone still experiencing issues, I highly recommend this site:
Python libraries. I'm using Python 3, so I,
Downloaded the file named: statsmodels‑0.8.0‑cp35‑cp35m‑win_amd64.whl
Opened windows command prompt
Went to my Downloads directory (cd Downloads)
And then used pip (pip install statsmodels‑0.8.0‑cp35‑cp35m‑win_amd64.whl)
I also had an issue with this in Python 3.4. It worked using the WHL statsmodel file at this link: https://pypi.python.org/pypi/statsmodels#downloads
After the download I installed it using: pip3.4 install my_directory\statsmodels-0.8.0rc1-cp34-none-win_amd64.whl, where my_directory is where I put the WHL file.