Open michael-k opened 8 years ago
Got the same problem. I imagine, it comes from the way the wheel is created.
There is no requirements.txt in the egg-info in the tar.gz on https://pypi.python.org/pypi/polyglot
I can't reproduce it locally, so I guess this is an error in the release process.
There are Linux dependencies you need to install, please check the documentation.
https://polyglot.readthedocs.io/en/latest/Installation.html
On Wed, Aug 24, 2016, 3:27 AM Alex Garel notifications@github.com wrote:
There is no requirements.txt in the egg-info in the tar.gz on https://pypi.python.org/pypi/polyglot
I can't reproduce it locally, so I guess this is an error in the release process.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aboSamoor/polyglot/issues/70#issuecomment-242020346, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKglk7LBa71FGS50vzd4PEqzV0-t-s0ks5qjByNgaJpZM4JqzTw .
Hello @aboSamoor , this is not a linux dependency problem ! I had the problem with libicu-dev installed and numpy installed (hand compiled). Please read my analysis above.
Hum this should be related to #67 (and fixed in master).
I hit the same problem, had to pip install pycld2 and morfessor separately.
So I have same problem ,what should I do?
I try to update my GCC to version_8.2,but no use。
@Shengguowei not sure if you still have the problem, but in case you do, I thought I would just post how I installed Polyglot on a barebone CentOS with python 3.6 (I used the docker-image for AWS-Lambda) and made it work (finally!) - maybe that can help you or others.
Since it's barebone, a bunch of stuff needs to be installed, before Polyglot and it's dependencies can be installed. Notice also the three lines setting encoding to UTF-8, which apparently is not default in CentOS. If not set, the installation of Polyglot will fail with some encoding error in a readme file.
yum install -y libicu-devel
yum install -y gcc gcc-c++
yum install -y python36-devel
yum install -y python36-setuptools
easy_install-3.6 pip
pip3 install numpy
pip3 install six
localedef -i en_US -f UTF-8 C.UTF-8
export LANG="C.UTF-8"
export LC_LANG="C.UTF-8"
pip3 install polyglot
pip3 install morfessor
pip3 install PyICU
pip3 install pycld2
As is evident, quite a few packages aside from polyglot is required for the installation to work on a barebone CentOS, but after performing these steps, I am able to get polyglot up and running :)
When running
pip3 install polyglot==16.7.4
no requirements get installed.See (this uses a fresh python 3.5 docker image with nothing else installed):
For comparison with
polyglot==15.10.3
: