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)

Most upvoted comments

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/):

pip install 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:

pip show mxnet-cu101

(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-smi does 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.post0 is 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.post2 instead.

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:

ERROR: Could not find a version that satisfies the requirement mxnet==1.8.0.post0 (from versions: 0.11.0, 0.12.0, 0.12.1, 1.0.0, 1.0.0.post1, 1.0.0.post3, 1.0.0.post4, 1.1.0.post0, 1.2.0, 1.2.1, 1.2.1.post1, 1.3.0, 1.3.1, 1.4.0, 1.4.0.post0, 1.4.1, 1.5.0, 1.6.0, 1.7.0.post1, 1.7.0.post2)
ERROR: No matching distribution found for mxnet==1.8.0.post0

It appears you are on a Windows machine. Can you use the Linux Subsystem instead? And see if

pip install mxnet==1.8.0.post0

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