ImportError: No module named torchvision
轉自:https://blog.csdn.net/miao0967020148/article/details/80400536
torchvison:圖片、視訊資料和深度學習模型
解決方案
安裝torchvision,參照官網
pip install torchvision
安裝指定版本
pip install torchvision==0.1.8
Collecting torchvision
Downloading https://files.pythonhosted.org/packages/ca/0d/f00b2885711e08bd71242ebe7b96561e6f6d01fdb4b9dcf4d37e2e13c5e1/torchvision-0.2.1-py2.py3-none-any.whl (54kB)
100% |████████████████████████████████| 61kB 68kB/s
Collecting pillow>=4.1.1 (from torchvision)
Using cached https://files.pythonhosted.org/packages/00/49/a0483e7308b4b04b5a898789911dbb876d9fea54e7df0453915e47744cfd/Pillow-5.1.0-cp27-cp27mu-manylinux1_x86_64.whl
Requirement already satisfied: torch in /home/miao/deep_ocr_env/lib/python2.7/site-packages (from torchvision) (0.3.0.post4)
Requirement already satisfied: six in /home/miao/deep_ocr_env/lib/python2.7/site-packages (from torchvision) (1.11.0)
Requirement already satisfied: numpy in /home/miao/deep_ocr_env/lib/python2.7/site-packages (from torchvision) (1.12.1)
Requirement already satisfied: pyyaml in /home/miao/deep_ocr_env/lib/python2.7/site-packages (from torch->torchvision) (3.12)
Installing collected packages: pillow, torchvision
Found existing installation: Pillow 4.1.0
Uninstalling Pillow-4.1.0:
Successfully uninstalled Pillow-4.1.0
Successfully installed pillow-5.1.0 torchvision-0.2.1
相關文章
- ImportError: No module named `defusedxml`ImportErrorXML
- ImportError: No module named yamlImportErrorYAML
- ImportError: No module named utilsImportError
- ImportError: No module named cElementTreeImportError
- ImportError: No module named builtinsImportErrorUI
- ImportError: No module named ‘torch‘ 解決方法ImportError
- ImportError:No module named SCons.ScriptImportError
- ImportError: No module named setuptools 解決方法ImportError
- ImportError: No module named thrift.Thrift問題解決ImportError
- pip安裝錯誤:ImportError: No module named 'pkg_resources'ImportError
- 啟動uwsgi報錯ImportError: No module named, unable to load appImportErrorAPP
- media-dispatcher啟動時報ImportError: No module named application.processImportErrorAPP
- pyecharts安裝後import錯誤 ImportError: No module named 'pyecharts_snapshot'EchartsImportError
- Window7 python2.7 拋錯ImportError No module named mysql.connectorPythonImportErrorMySql
- ImportError: No module named flask 導包失敗,Python3 重新安裝 Flask 模組ImportErrorFlaskPython
- pycharm環境,命令列執行提示:ImportError: No module named xxx 解決方法PyCharm命令列ImportError
- ModuleNotFoundError: No module named 'sqlite'ErrorSQLite
- ModuleNotFoundError: No module named 'pyttsx'ErrorTTS
- ModuleNotFoundError: No module named ‘Crypto‘ ‘Cryptodome‘Error
- linux已經安裝bert4keras但出現ImportError: No module named ‘bert4keras‘LinuxKerasImportError
- ModuleNotFoundError: No module named 'phkit.pinyin'Error
- No module named MYSQLdb 問題解決MySql
- ModuleNotFoundError: No module named ‘DBUtils‘解決辦法Error
- Linux:Python報錯:No module named MySQLdbLinuxPythonMySql
- ModuleNotFoundError: No module named ‘cv2’——(版本問題)Error
- python ModuleNotFoundError: No module named ‘requests‘ 的 解決方案PythonError
- ImportError: cannot import name 'get_ora_doc' from partially initialized moduleImportErrorZed
- 使用PyCharm時顯示的 No module named ‘xxx’PyCharm
- yum依賴python2環境-"No module named urlgrabber"Python
- 解決Python找不到ssl模組問題 No module named _sslPython
- Scrapy學習中解決No module named tutorial.items問題
- ModuleNotFoundError: No module named ‘matplotlib‘ 一系列解決辦法Error
- 問題結局辦法:Error loading psycopg2 module: No module named ‘psycopg2‘Error
- 使用Pycharm出現No module named Test_01_module_a less... (Ctrl+F1) This inspection detects names that shPyCharm
- 解決:ModuleNotFoundError: No module named ‘urllib3.packages.six.moves問題ErrorPackage
- centos 解決python3.7 安裝時No module named _ssl 親測有效CentOSPython
- pip成功安裝gdal的whl檔案後,PyCharm仍報錯No module named ‘osgeo’PyCharm
- RuntimeError: No such operator torchvision::nmsError