kordk / torch-ecpg

(GPU accelerated) eCpG mapper
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

can not install #38

Open CTLife opened 8 months ago

CTLife commented 8 months ago

Defaulting to user installation because normal site-packages is not writeable Collecting git+https://github.com/kordk/torch-ecpg.git Cloning https://github.com/kordk/torch-ecpg.git to /tmp/pip-req-build-fwtjiex6 Running command git clone --filter=blob:none --quiet https://github.com/kordk/torch-ecpg.git /tmp/pip-req-build-fwtjiex6 Resolved https://github.com/kordk/torch-ecpg.git to commit dd64454b3356c672d767f43231807ccce5d29c77 Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

**× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [3 lines of output] error in tecpg setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after version specifier) torch~=1.13.1+cu116


      [end of output]**

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
kordk commented 7 months ago

Recently, the python packaging system no longer allows ‘+local.version.label’ in version specifiers for the package (See https://discuss.python.org/t/lets-permit-local-version-label-in-version-specifiers/22781/26). This change will cause the default installer method to fail.

The workaround (for now) is to comment out one line of the requirements.txt file. Assuming the package was installed already in the environment, it is safe to comment out the last entry in this file (i.e., torch~=1.13.1+cu116):

cd torch-ecpg
cat requirements.txt 
click~=8.0.3
colorama~=0.4.4
matplotlib~=3.5.1
numpy~=1.24.1
pandas~=1.3.5
psutil~=5.9.4
requests~=2.26.0
scipy~=1.10.0
setuptools~=63.3.0
#torch~=1.13.1+cu116

And you can finish the installation.

CTLife commented 2 months ago

Thanks. Comment out the line, It works well. Sorry for the delay.

CTLife commented 2 months ago

Modify the line, but not comment out the line: requirements.txt

click~=8.0.3
colorama~=0.4.4
matplotlib~=3.5.1
numpy~=1.24.1
pandas~=1.3.5
psutil~=5.9.4
requests~=2.26.0
scipy~=1.10.0
setuptools~=63.3.0
torch~=1.13.1