sockeye: Unable to install the requirements
Hello,
I have installed Sockeye in an Anaconda (Conda 4.10.3 with Python 3.8.8) environment as explained here: https://awslabs.github.io/sockeye/setup.html
But I can’t install mxnet:
Could not find a version that satisfies the requirement mxnet==1.8.0.post0
I tried it with conda install -c anaconda mxnet and with pip install mxnet==1.8.0.post0,
but nothing could help.
Do you know why I can’t install mxnet?
I want to train the model described here: https://aws.amazon.com/blogs/machine-learning/train-neural-machine-translation-models-with-sockeye/
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 39 (19 by maintainers)
Ok, then I think your only choice is to work within the WSL and install Mxnet 1.8.0 with support for CUDA 10.1 (https://pypi.org/project/mxnet-cu101/1.8.0.post0/):
Make sure that after installing everything, mxnet-cu101==1.8.0 is exactly what is installed. To check this:
(Technically you could still build mxnet from scratch with different dependencies that match your Windows machine exactly.)
This could mean that CUDA is in fact not installed on your system. (Having
nvidia-smidoes not mean that CUDA is installed.)You can check existing packages yourself on Pypi if you like. Here is the page for mxnet-cu112:
https://pypi.org/project/mxnet-cu112/
I think the release history says that
1.8.0.post0is the first version released for a build that supports CUDA 11.2.Does your GPU really support CUDA 11.2?
Yes, on Windows try 1.7.0.post2 but with Python 3.7 (not 3.8) - although it seems there was one other unrelated error with building numpy.
Get Microsoft C++ Build Tools first.
Interesting, it seems like 1.8 wasn’t published for Windows. You should actually be able to use MXnet 1.7 as well so you could try installing
1.7.0.post2instead.Can you work inside WSL?
After looking into this a bit more:
This exact version of Mxnet is not available on windows, there are wheels only for Mac OS and Linux:
https://pypi.org/project/mxnet/#files
Contrast this with the wheel available for mxnet
1.7.0.post2:https://pypi.org/project/mxnet/1.7.0.post2/#files
Another solution would probably be to build mxnet 1.8.0 from source on Windows.
I switched to Python 3.7 and I received this message:
It appears you are on a Windows machine. Can you use the Linux Subsystem instead? And see if
works there? I’m actually not familiar with Windows machines, this is just a guess.
By the way, the error you encountered in your most recent comment is specific to Python 3.8:
https://github.com/apache/incubator-mxnet/issues/18276
Switching to e.g. Python 3.7 would be a fix for this problem I believe.
Hi! What do you get by running installation without a specific version requirement?
pip install mxnet