Error installing ds_ctc-decoder for v.0.6.1

Hi, I got the following error:

[b2jiang@cdr31 DeepSpeech]$ conda activate ds
(ds) [b2jiang@cdr31 DeepSpeech]$ pip install $(python util/taskcluster.py --decoder)
Ignoring pip: markers ‘python_version < “3”’ don’t match your environment
ERROR: ds_ctcdecoder-0.7.0a2-cp36-cp36m-manylinux1_x86_64.whl is not a supported wheel on this platform.
(ds) [b2jiang@cdr31 DeepSpeech]$ python --version
Python 3.6.10 :: Anaconda, Inc.

System python is 2.7 (I can’t change that), but loaded module python3.6.

(ds) [b2jiang@cdr31 DeepSpeech]$ conda deactivate
[b2jiang@cdr31 DeepSpeech]$ python --version
Python 3.6.10 :: Anaconda, Inc.

When I installed it two months ago on a different server I did the same thing and it was successful.

Thank you!

We don’t officially support Anaconda, as it basically reinvents 75% of the already hard to keep up with Python packaging ecosystem, and seems to break everything related to native extensions. If at all possible, use virtual environments with a normal, non-Anaconda Python.

Got it, thanks a lot!

why does it fetches 0.7.0a2 if you are working on 0.6.1 ?

I first cloned the 0.7.0 repo but got the error of not finding deepspeech_training module, probably because I didn’t do “pip3 install --upgrade --force-reinstall -e .” as I can’t find a conda equivalence to that. So I changed to 0.6.1. I’m sure that the command was run within the 0.6.1 directory though.

Is it possible to just change the version part in the url for installation?

The code relies on VERSION file, so I seriously doubt how you changed to 0.6.1.

I see, so that’s not possible. do you have any idea why it fetches me 0.7.0 when I’m working in the 0.6.1 repo…?

Tha’ts why I am asking how you performed the switch …

I cloned two repos, just cd-ed to the different repo. it’s not the right thing to do?

How did you cloned ? Can you share the content of VERSION ?

the following: 0.7.0-alpha.2

I guess what I thought was 0.6.1 was 0.7.0a2 after all… I just scp the folder on the server I first worked on (installed without problem) to the new server. I do remember that when I first cloned the repo the latest release was 0.6.1, so I just took it as 0.6.1

Please git checkout v0.6.1 to get the correct version then …

Sounds good, thank you!

Just curious, I don’t really care which version I use as long as it works, so why it fetches me 0.7.0a2 but doesn’t install, while it’s the compatible version?

this goes back to conda statements

I still got the same error even without conda:

(ds0.7) [b2jiang@cedar1 deepspeech0.7.0]$ pip3 install --upgrade --force-reinstall -e .

Ignoring pip: markers ‘python_version < “3”’ don’t match your environment

Looking in links: /cvmfs/soft.computecanada.ca/custom/python/wheelhouse/avx2, /cvmfs/soft.computecanada.ca/custom/python/wheelhouse/generic

Obtaining file:///scratch/b2jiang/deepspeech0.7.0

ERROR: ds_ctcdecoder-0.7.0-cp36-cp36m-manylinux1_x86_64.whl is not a supported wheel on this platform.

Not sure if this is helpful, but the server uses python 2.7. I installed python 3.6.10 later under my user directory (I can’t sudo). All steps had nothing to do with conda.