First of all, the most important thing is the version correspondence problem:
my environment
linux Ubuntu 16.04.7 lts
python = 3.7
python = 1.4
CUDA = 10.1
the versions of the above four should correspond. This can be found online.
This is the official installation procedure:
git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
If not, replace the installation statement with the following:
python setup.py install --cuda_ext --cpp_ext
Errors may be reported here:
filenotfounderror: [errno 2] no such file or directory: ‘:/usr/local/cuda-10.1/bin/nvcc’: ‘:/usr/local/cuda-10.1/bin/nvcc’
The problem here lies in “: /”, so we just need to specify
export cuda_home = {/usr/local/cuda-10.1} to remove the redundant “:”, and then run it again. We will report some warnings. Don’t worry.
Read More:
- [Solved] ERROR: Command errored out with exit status 128: git clone -q
- Apex library Install Error: amp not installed error [How to Solve]
- ubuntu install package Error: subprocess installed post-installation script returned error exit status 10
- subprocess installed post-installation script returned error exit status 1
- C++ Compile Error: ld returned 1 exit status [How to Solve]
- [Solved] Nvml compilation official use case error: collect2: error: ld returned 1 exit status
- ./configure Command Execute error (Centos7 Install erlang)
- [Solved] Ubuntu Terminal Error: subprocess installed post-installation script returned error exit status 1
- [Solved] ERROR: Linux route delete command failed: external program exited with error status: 2
- [problem solving] the problem of err returned non zero status 1 or status 2 is solved after upgrading python3 in Ubuntu
- Firewall Status View Error: service iptables status [How to Solve]
- Linux Install Bee and Execute Error: bash: bee: command not found
- Git Error Resolution: errno:10054 Time out
- -bash: sqlplus: command not found [How to Solve]
- Prompt “entering emergency mode. Exit the shell to continue” if the Linux operating system does not start normally
- mysqlclient in Ubuntu: How to Solve mysqlclient Install Error
- [Solved] xdd-plus-fetch qrcode error: Packet timed out,2-error: unknown flag
- [Solved] Node uploads files to FTP server error: timed out while making data connection
- See system logs and ‘systemctl status docker.service‘ for details
- [Solved] ERROR: error loading sources list: The read operation timed out