-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Installing allennlp through pip using conda virtual environment fails #2473
Comments
I ran this on a mac, but I wasn't able to reproduce your issue:
Our CI runs pip installs for each commit, although on an ubuntu instance and with Python 3.6. |
Not sure if this helps:
I won't be able to troubleshoot the GCC problems you're having. Maybe you could try using our Docker image as a workaround? |
Running into exactly the same issue on Manjaro Linux. This seems to be a compatibility issue with anaconda's linker (see cython/cython#2824) on Arch... I got it working by renaming anaconda's |
I am also on Manjaro. My solution for this is to use conda-forge as the source channel of the installation. |
Closing, since this has to do with a particular Linux distribution (Manjaro) and we have a workaround (see above two posts). Please comment further if there's a specific action you would like to see us take! |
Reference to this issue: scrapy/scrapy#2115
This also works for me |
This is also an issue on MacOS Mojave. The conda-forge workaround in #1983 does work but downgrades python 3.7 to 3.6 which is a little bit annoying. |
Re-opening since this might be a 3.7 issue. |
|
I am facing the same issue. Works fine in 3.6 but fails if i use python 3.7. Tried in multiple distributions, Arch, and Void Linux, so it definitely looks like a python 3.7 issue |
Interesting--we try out our library on |
I have another update re this issue. It fails when installing on an Amazon Linux AMI in both python 3.6 and python 3.7 conda environments. |
I just started a brand new EC2 instance running the Amazon Linux 2 AMI. I was able to successfully install allennlp, here are the commands I ran:
|
on the same machine I was also able to install allennlp in a 3.7 environment:
|
I'm so sorry Joel, but the error persists!
And here is the final part of the error message:
The error message also begins with the line |
ok, try doing on my "Amazon Linux 2" machine, it's 7.3.1. on my "Amazon Linux" machine, it's 7.2.1. so my hypothesis was that jsonnet needs 7.3.1 in order to build correctly. 😬 the question is: how to get the Amazon Linux machine up to 7.3.1. I was able to find these instructions, which worked (but also I have no idea what they're actually doing): https://gist.github.com/mhart/841afde086604e7b4a86fa140480c84d after running those, my |
gcc is indeed version 7.2.1 on my AMI: Unfortunately I won't be able to try 7.3.1 today as I don't have root access on this machine. But great debugging nonetheless! I also note that the gcc version in my conda env on macOS is |
a simpler solution seems to be use the "Amazon Linux 2" AMI, but I get that that's not always an option. |
Absolutely. Many thanks once again! |
I have tried to debug this more, and it seems to be an issue with jsonnet and regex packages. Both of them fail to install on conda environements with python 3.7 I followed @KaiChengYan 's suggestion and compile it against the system version of gcc and the system's ld. Once Jsonnet and Regex get installed I can just use pip install allennlp |
I ran the gist today and it worked! Much appreciated! |
I just had this issue on a Mac and followed https://stackoverflow.com/questions/52509602/cant-compile-c-program-on-a-mac-after-upgrade-to-mojave to get it to work. Specifically I ran:
|
How interesting. I updated to Mojave 10.14.4 (18E226) yesterday. I just tried to test this out in a new Conda environment, Python 3.7.3, but it installed perfectly on its own! |
I was doing Conda, Python 3.6, on Mojave 10.14.4 (new laptop). |
Closing as resolved and dull |
I am getting below error in azure Linux environment when try to install allennlp.
|
@Ravibth clearly you need to install |
I followed this on MacOC Mojave and was able to install AllenNLP. |
I plan to try |
Same worked on python 3.7 for me:
|
This one solved the problem on my machine (Ubuntu) |
Describe the bug
I am trying to install allennlp through pip under conda virtual environment, however it fails and leave error message like this:
To Reproduce
I am using conda 5.3.1 under archlinux with pytorch==1.0.0 preinstalled as part of the environment, and gcc of version
also tried install gcc through conda and then rerun
pip install allennlp
but fails as well.
Expected behavior
allennlp successfully installed
System (please complete the following information):
The text was updated successfully, but these errors were encountered: