ĮRROR: Command errored out with exit status 1:Ĭommand: /usr/local/bin/python3.9 -u -c 'import sys, setuptools, tokenize sys.argv = '"'"'/private/var/folders/jz/bbl56kxj3tl_wssc22lnxqmc0000gn/T/pycharm-packaging/torch/setup.py'"'"' _file_='"'"'/private/var/folders/jz/bbl56kxj3tl_wssc22lnxqmc0000gn/T/pycharm-packaging/torch/setup.py'"'"' f=getattr(tokenize, '"'"'open'"'"', open)(_file_) code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"') f.close() exec(compile(code, _file_, '"'"'exec'"'"'))' install -record /private/var/folders/jz/bbl56kxj3tl_wssc22lnxqmc0000gn/T/pip-record-92u0tiue/install-record.txt -single-version-externally-managed -compile -install-headers /Library/Frameworks/amework/Versions/3.9/include/python3.9/torchĬwd: /private/var/folders/jz/bbl56kxj3tl_wssc22lnxqmc0000gn/T/pycharm-packaging/torch/įile "/private/var/folders/jz/bbl56kxj3tl_wssc22lnxqmc0000gn/T/pycharm-packaging/torch/setup.py", line 225, in You can find discussion regarding this at. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with -no-clean. pip 20.3 will remove support for this functionality. Running setup.py install for torch: finished with status 'error'ĭEPRECATION: The -b/-build/-build-dir/-build-directory option is deprecated. Running setup.py install for torch: started Using legacy 'setup.py install' for torch, since package 'wheel' is not installed. Requirement already satisfied: pyyaml in /Library/Frameworks/amework/Versions/3.9/lib/python3.9/site-packages (from torch) (5.3.1) I get different error messages for each command, but this is the output of "pip install torch": Collecting torch
I want to add that using a virtual environment is usually the preferred way to develop a python application, so answer is probably the best in an ideal world. Sources: python installing packages with pip Pip latest installĬheck also Tobu's answer if you want an even more upgraded version of Python. Much python packages require also the dev package, so install it too: sudo apt-get install python3-dev If pip3 symlink does not exists, check for something like pip-3. If it doesn't work, this method should work for any Linux distro and supported version: On some versions of Ubuntu the command is pip-3.2: sudo pip-3.2 install MODULE_NAME
The short answer applies only on newer systems. Source: Shashank Bharadwaj's comment Long Answer
Short Answer sudo apt-get install python3-pip