This error is reported because you did not successfully install apex. Note ~: it is not PIP install apex
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-6o4wusvf/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-6o4wusvf/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-07hjl8r1/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/apex Check the logs for full command output.
Exception information:
Traceback (most recent call last):
Processing method: Step 1: use this command to check the CUDA version supported by your machine:
nvcc --version
Step 2: use the following command to view the version of CUDA you currently have installed.
pip list
Note: when installing apex, you must ensure that the two versions are consistent. That is, if the version supported by the machine is 11.0, you can install CUDA of the corresponding torch version.
First use the following command to uninstall the original torch of your machine
!pip uninstall -y torch torchvision torchaudio
Then use the following command to install. For example, the machine here supports CUDA version 11.0
!pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
Next, install apex:
!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" ./
The above work is completed.
Read More:
- Pandas read_ Error in json() valueerror: training data
- Error in data training: valueerror: unknown label type: ‘continuous‘
- RuntimeError: cudnn RNN backward can only be called in training mode
- Solution to unbalanced load of multiple cards (GPU’s 0 card is too high) in Python model training (simple and effective)
- Solutions to problems in SAS 9.3 x64 importing and exporting Excel
- Error in STS importing POM file of Maven project
- Error in machine learning training data (FIT): valuee rror:Unknown label type:‘continuous‘
- Solve the problem of red wavy line in pychar when importing module written by oneself
- Solution to garbled code problem after importing project in eclipse
- An error was reported in the process of importing the table from mysql5.7: [err] 1067 – invalid default value for ‘***‘
- Error importing keras in jupyter Notebook: modulenotfounderror: no module named ‘keras’ solution
- Methods of exporting configuration and importing configuration in IntelliJ idea
- This (code, message, data: null) still exists after importing spring cloud project into Lombok; the data in the project is unrecognized
- The build report plug-in reported an error in importing unit script (BRT_ Util.cs :error CS1525: Unexpected symbol `;’, expecting `)’, or `,’)
- Create an Apex class that returns contacts based on incoming parameters
- Runtimeerror using Python training model: CUDA out of memory error resolution
- Visualization of training process based on tensorboard on Python
- Solve the problem of Python in Windows environment: Fatal error in launcher: Unable to create process using’”‘ in pip installation
- To solve the problem of increasing video memory when training network (torch)
- ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 256,