Closed tueboesen closed 4 years ago
Right away option: use the docker container ~https://hub.docker.com/repository/docker/rostlab/seqvec~
EDIT: I put in the wrong link, here it is: https://hub.docker.com/r/rostlab/seqvec
I have never used docker before, but I will try and check it out now, thank you for the quick reply.
Could you just try pip install seqvec
in a new virtualenv? Also could you please post the output of pip debug
?
Could you just try
pip install seqvec
in a new virtualenv? Also could you please post the output ofpip debug
?
That was what I just did. I initially tried to install it in my standard machine learning environment so I could integrate it into my previous work, but when that failed I started a new environment. Where I tried to install seqvec:
(venv) C:\Users\Tue\PycharmProjects\test>pip install seqvec
Collecting seqvec
Using cached seqvec-0.3.0-py3-none-any.whl (10 kB)
ERROR: Could not find a version that satisfies the requirement torch<2.0,>=1.2 (from seqvec) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch<2.0,>=1.2 (from seqvec)
So I manually installed torch as explained above, and then I tried again, which gave the result I posted in the original comment.
I will try the install again with debug on, so I can get more details.
Here is the result of pip debug:
Is it because I'm using Python 3.8 that I'm getting these problems, I see that you guys mention 3.7 in your FAQ, I just figured that was the minimum required version, but it might be the maximum required version?
(venv) C:\Users\Tue\PycharmProjects\test>pip debug --verbose
WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 20.1.1 from c:\users\tue\pycharmprojects\test\venv\lib\site-packages\pip (python 3.8)
sys.version: 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)]
sys.executable: c:\users\tue\pycharmprojects\test\venv\scripts\python.exe
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: cp1252
sys.platform: win32
sys.implementation:
name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): c:\users\tue\pycharmprojects\test\venv\lib\site-packages\pip\_vendor\certifi\cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
appdirs==1.4.3
CacheControl==0.12.6
colorama==0.4.3
contextlib2==0.6.0.post1 (Unable to locate actual module version, using vendor.txt specified version)
distlib==0.3.0
distro==1.5.0 (Unable to locate actual module version, using vendor.txt specified version)
html5lib==1.0.1
ipaddress==1.0.23
msgpack==1.0.0 (Unable to locate actual module version, using vendor.txt specified version)
packaging==20.3
pep517==0.8.2
progress==1.5
pyparsing==2.4.7
requests==2.23.0
certifi==2020.04.05.1
chardet==3.0.4
idna==2.9
urllib3==1.25.8
resolvelib==0.3.0
retrying==1.3.3 (Unable to locate actual module version, using vendor.txt specified version)
setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
six==1.14.0
toml==0.10.0
webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 30
cp38-cp38-win_amd64
cp38-abi3-win_amd64
cp38-none-win_amd64
cp37-abi3-win_amd64
cp36-abi3-win_amd64
cp35-abi3-win_amd64
cp34-abi3-win_amd64
cp33-abi3-win_amd64
cp32-abi3-win_amd64
py38-none-win_amd64
py3-none-win_amd64
py37-none-win_amd64
py36-none-win_amd64
py35-none-win_amd64
py34-none-win_amd64
py33-none-win_amd64
py32-none-win_amd64
py31-none-win_amd64
py30-none-win_amd64
cp38-none-any
py38-none-any
py3-none-any
py37-none-any
py36-none-any
py35-none-any
py34-none-any
py33-none-any
py32-none-any
py31-none-any
py30-none-any
I did some further testing and made a new virtual environment with Python 3.7 where I installed torch version 1.2 and with this old version of torch the installation worked.
Now the big question is whether the project I want to integrate this into can run on that old version of torch. Do you have any plans of updating the project so it can run on newer versions of torch/python? or what would you guys suggest for that?
Great to hear that you managed to run SeqVec. Regarding your project planning: we will release a new set of pre-trained LMs for proteins very soon (end of this week, latest next week). I would recommend to simply switch to those newer LMs once we've put them online.
I'm trying to install seqvec, but it fails to install. I'm installing it in a new virtual environment, where the only thing I installed before seqvec was the latest version of pytorch using:
pip install torch===1.5.1 torchvision===0.6.1 -f https://download.pytorch.org/whl/torch_stable.html
Afterwards I try to install seqvec, but get the following:
It seems that spacy was the first package that failed to install, so I tried installing that one manually, which went fine, but then when I tried to install seqvec again, it still fails. My guess is that some of the package requirements are incompatible (Likely some of the packages have too old requirements and should be updated to newer versions)
Any advice for how to fix this, so I can try to use seqvec for my research would be greatly appreciated.