Coder Social home page Coder Social logo

Comments (5)

Zhihan1996 avatar Zhihan1996 commented on May 29, 2024

There are always many problems when installing this package. I assume these problems result from the mismatch of your local cuda version / NCCL version and cudatoolkit version. A possible solution is to install the python-only version as described on the apex github repo.

from dnabert.

linnabrown avatar linnabrown commented on May 29, 2024

Thank you for your response. I figured it out!

from dnabert.

BinchaoPeng avatar BinchaoPeng commented on May 29, 2024

Running setup.py install for apex ... error
ERROR: Command errored out with exit status 1: /nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-4x23nl6p/setup.py'"'"'; file='"'"'/tmp/pip-req-build-4x23nl6p/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-elj3n3dy/install-record.txt --single-version-externally-managed --compile --install-headers /nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/include/python3.6m/apex Check the logs for full command output.
Exception information:
Traceback (most recent call last):
File "/nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 854, in install
req_description=str(self.req),
File "/nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/lib/python3.6/site-packages/pip/_internal/operations/install/legacy.py", line 86, in install
raise LegacyInstallFailure
pip._internal.operations.install.legacy.LegacyInstallFailure

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 224, in _main
status = self.run(options, args)
File "/nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
return func(self, options, args)
File "/nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 403, in run
pycompile=options.compile,
File "/nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/lib/python3.6/site-packages/pip/_internal/req/init.py", line 90, in install_given_reqs
pycompile=pycompile,
File "/nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 858, in install
six.reraise(*exc.parent)
File "/nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/lib/python3.6/site-packages/pip/_vendor/six.py", line 703, in reraise
raise value
File "/nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/lib/python3.6/site-packages/pip/_internal/operations/install/legacy.py", line 76, in install
cwd=unpacked_source_directory,
File "/nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/lib/python3.6/site-packages/pip/_internal/utils/subprocess.py", line 275, in runner
spinner=spinner,
File "/nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/lib/python3.6/site-packages/pip/_internal/utils/subprocess.py", line 240, in call_subprocess
raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-4x23nl6p/setup.py'"'"'; file='"'"'/tmp/pip-req-build-4x23nl6p/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-elj3n3dy/install-record.txt --single-version-externally-managed --compile --install-headers /nas/longleaf/home/lehuang/tool/anaconda/envs/dnabert/include/python3.6m/apex Check the logs for full command output.
1 location(s) to search for versions of pip:

I also meet the error when i use cudatoolkit=10.2 not 10.0, so i must use 10.0 version ?

from dnabert.

Zhihan1996 avatar Zhihan1996 commented on May 29, 2024

Yes, you must make sure the version of cudatoolkit and your local cuda is the same. Please refer to this issue for more details. NVIDIA/apex#550

from dnabert.

jerryji1993 avatar jerryji1993 commented on May 29, 2024

Closed.

from dnabert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.