Polyglot Installation - python

I'm trying to install 'polyglot' using the below command
pip install polyglot
But I'm getting the below error
Command "python setup.py egg_info" failed with error code 1 in C:\Users\K~1.SHA\AppData\Local\Temp\pip-install-tcez0ptg\polyglot\
My python version is Python 3.6.4
Since I'm new to python I tried the below commands which I found online but they haven't helped
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
pip install --upgrade pip setuptools wheel
How can I install polyglot successfully? Any help on this is appreciated.

To install polyglot in Windows using a Python 3.6 or Python 3.7 you will need a wheel for two dependencies:
You need to download them and then install them with pip on your local machine.
Here you will find many unofficial python builds:
https://www.lfd.uci.edu/~gohlke/pythonlibs/
install PyICU.whl
install PyCLD2.whl
In both cases you will need be able to choose the right version of the build for your windows version and your python version.
It's easy, for example for PyICU:
PyICU wraps the ICU (International Components for Unicode) library.
PyICU‑2.3.1‑cp27‑cp27m‑win32.whl
PyICU‑2.3.1‑cp27‑cp27m‑win_amd64.whl
PyICU‑2.3.1‑cp35‑cp35m‑win32.whl
PyICU‑2.3.1‑cp35‑cp35m‑win_amd64.whl
PyICU‑2.3.1‑cp36‑cp36m‑win32.whl
PyICU‑2.3.1‑cp36‑cp36m‑win_amd64.whl
PyICU‑2.3.1‑cp37‑cp37m‑win32.whl
PyICU‑2.3.1‑cp37‑cp37m‑win_amd64.whl
the 27 means Python 2.7 and the 36 Python 3.6...
If you have 64 bits python and windows then choose the amd64 otherwhise the win32 version.
Once you have download them you will need to install it using pip in your python environment:
In my case:
python -m pip install C:\Users\Administrator\Downloads\pycld2-0.31-cp37-cp37m-win_amd64.whl
python -m pip install C:\Users\Administrator\Downloads\PyICU-2.3.1-cp37-cp37m-win_amd64.whl
pip install git+https://github.com/aboSamoor/polyglot#master

Related

Pip error "No matching distribution found for perceptilabs"

So I'm trying to install Perceptilabs so I can have a GUI for TensorFlow. I'm following their install instructions, which is pip install perceptilabs. However, I keep having the error:
ERROR: Could not find a version that satisfies the requirement perceptilabs
ERROR: No matching distribution found for perceptilabs
Here's a screen shot:
Can't embed images yet, here's the link
Even when I do python -m pip install perceptilabs, py -m pip install perceptilabs, pip3 install perceptilabs, python -m pip3 install perceptilabs or py pip3 -m install perceptilabs, it still doesn't work. Even in a virtual env.
I have Python 3.8.3 and 3.9.4 installed, pip and pip3 21.0.1, Tensorflow 2.5.0-rc1, Windows 10 Pro version 20H2 x64, with an Intel Core i5-3470 CPU, 8 GB RAM.
unfortunately it's only supported on python 3.7 and 3.6 for the moment; you can see in the pypi page Requires: Python >=3.6, <3.8

Installed Anaconda 4.3.1 (64-bit) which contains Python 3.6 but pip3 missing, cannot install tensorflow

I downloaded the latest stable Anaconda install off the Continuum website which turned out to be Anaconda 4.3.1 (64-bit) and comes with Python 3.6.0. I am in a Windows 10 environment.
However pip3 is missing and I cannot install any Python 3.x packages via pip3.
What am I doing wrong?
If you do not have another environment installed python 3+ will default to just pip I believe since pip3 is just an alias for pip.
pip install --upgrade pip
or You can do it with the associated Python binary too; if it executable as python3, then use that:
python3 -m pip install --upgrade pip
after that check:
pip --version
otherwise just try pip-3.6
for tensorflow on conda:
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.1-cp35-cp35m-win_amd64.whl
for python 3.6 due to conda providing the 3.5 one: from
pip install https://testpypi.python.org/packages/db/d2/876b5eedda1f81d5b5734277a155fa0894d394a7f55efa9946a818ad1190/tensorflow-0.12.1-cp36-cp36m-win_amd64.whl
Since this wheel had a version that is undesirable we could instead install
the wheel directly from gohlke's windows binaries repository :
download the wheel for python 3.6 from here and then install the wheel:
cd to the directory containing .whl file:
pip install some-package.whl
easy_install pip
I used it, for the problem of pip installation in miniconda.
sometimes the pip is not properly installed but it claims yes
Solution:- (Note:- This will surely work for all!!)
Step 1:- conda search python
Step 2:- conda install python=3.5.2
Step 3:- pip install tensorflow
Step 4:- import tensorflow as tf
I have Windows10, 64bit, Anaconda4.3 with Python 3.6.
Karthik' soluton worked for me. Before that I tried everything including "conda create -n tensorflow python=3.5", but it did not work (although "python --version" gave 3.5.3).
you should be able to install tensorflow using
$ conda install -c conda-forge tensorflow

Install Python 3.5.2, but pip for Python 2.6

VPS-server was a version Python 2.6, I installed version Python 3.5.2.
When I try to install some packages with help pip, I got errors.
During installation packages:
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Versions:
# Python -V
# Python 3.5.2
# pip -V
# pip 8.1.2 from /usr/lib/python2.6/site-packages/pip-8.1.2-py2.6.egg (python 2.6)
# cat /etc/*-release
# CentOS release 6.8 (Final)
How to change path to pip from python 3.5 ?
if you haven't pip in server you can use get-pip file:
after install python usually installed pip and you can run by pip3 command
for example you can use:
pip3 install netaddr
Upgrading pip manually solved this issue for me once. Update pip Documentation
pip is already installed if you're using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.org, but you'll need to upgrade pip.
On Linux or OS X:
pip install -U pip
On Windows [5]:
python -m pip install -U pip

Can't install tensorflow with conda package manager. Pip3 not found and virtualenv not compatible

Trying to install tensorflow on OSX with python installed with anaconda :
https://www.tensorflow.org/versions/r0.7/get_started/os_setup.html#virtualenv-installation
Get stuck on :
sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.1-cp35-none-any.whl
and get error :
tensorflow-0.7.1-cp35-none-any.whl is not a supported wheel on this platform.
When I try virtualenv installation
New python executable in /Users/xxx/tensorflow/bin/python
ERROR: The executable /Users/xxx/tensorflow/bin/python is not functioning
ERROR: It thinks sys.prefix is '/Users/xxx/tmp' (should be '/Users/xxx/tensorflow')
ERROR: virtualenv is not compatible with this system or executable
What's the best way to install tensorflow with python installed with anaconda?
I had the same issue trying to install with python 3.4.3 and pip 8.1.
$ pip install --upgrade https://storage.googleapis.com/tensorflow
tensorflow-0.7.1-cp35-none-any.whl is not a supported wheel on this platform.
To fix I simply upgraded to python 3.5.1 (I use pyenv to allow installation local of multiple versions of python).
Running with python 3.5.1 I can now successfully execute:
$ pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.1-cp35-none-any.whl
...happy install message fun follows....
I have no clue as to why python 3.4.3 fails, but this version of tensorflow https://storage.googleapis.com/tensorflow/mac/tensorflow-0.8.0rc0-py3-none-any.whl seems to work with python 3.4.3 fine.

Trouble with installing pip 8.1.1 from 7.1.2

I'm having an issue with upgrading pip from 7.1.2 to 8.1.1. At first I downloaded Python 3.4 and installed pip from there but then noticed Python 3.5 was there so I downloaded that. When trying to use pip to install selenium it says You are using pip version 7.1.2 however 8.1.1 is available. I do "pip install --upgrade pip" then get an error. See attached screenshot.What do I do? Btw I'm on windows 8.1.enter image description here
Ok. It's working if I run cmd as an admin then do
python -m pip install --upgrade pip
In Mac, I ran:
sudo python -m pip install --upgrade pip
Then, it worked.
Did you try python -m pip install --upgrade pip? if pip is being used, it cannot install itself.
This is a common question that requires few germane steps to pre-installing other modules in Python.
Depending on the version of your Python (Either the 2.X series or the 3.X series), and the operation system (Window, Ubuntu, etc ), you will need to do the following;
Open CMD (Short-Cut: Control+R button on the keyboard)
Make sure the current directory is the administrator on the hard-drive of the system and your internet connection is available.
i.e C:\Users\System_Name PC
Type in the command:
Pip install --upgrade pip
i.e C:\Users\System_Name PC > pip install --upgrade pip
and hit ENTER key to activate:
It will uninstall the previous version and install the latest version
Restart the system and continue the installation of each python module
e.g Pip install dateutil
Pip install numpy
Pip install matplotlib
Peradventure you wish to specify the version of the python module dependencies you want to install;
Pip install Django==1.90
It will install the specific version: otherwise if not specified, the latest version of the target module would be installed.

Categories