### 環境
python3.6.2
やりたいこと
python仮想環境作成に必要なパッケージをrequirment.txtに記載して
一括インストールしようとしました。
最初はwheelがインストールされていない的なことが書いてあったので
pipでインストールしました。
pillowとwheelの関係性がうまくいっていないのか
以下のようなエラーが出力されました。
(myenv) C:\takakura\django>pip3 install -r requirements.txt Requirement already satisfied: Django~=2.2.10 in c:\takakura\django\myenv\lib\site-packages (from -r requirements.txt (line 1)) (2.2.16) Collecting Pillow~=2.2.1 Using cached Pillow-2.2.2.zip (2.2 MB) Collecting django-widget-tweaks~=1.4.8 Using cached django_widget_tweaks-1.4.8-py2.py3-none-any.whl (11 kB) Collecting django-environ~=0.4.5 Using cached django_environ-0.4.5-py2.py3-none-any.whl (21 kB) Collecting gunicorn~=20.0.4 Using cached gunicorn-20.0.4-py2.py3-none-any.whl (77 kB) Requirement already satisfied: sqlparse>=0.2.2 in c:\takakura\django\myenv\lib\site-packages (from Django~=2.2.10->-r requirements.txt (line 1)) (0.3.1) Requirement already satisfied: pytz in c:\takakura\django\myenv\lib\site-packages (from Django~=2.2.10->-r requirements.txt (line 1)) (2020.1) Requirement already satisfied: setuptools>=3.0 in c:\takakura\django\myenv\lib\site-packages (from gunicorn~=20.0.4->-r requirements.txt (line 5)) (28.8.0) Building wheels for collected packages: Pillow Building wheel for Pillow (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'c:\takakura\django\myenv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PCUSER~1\AppData\Local\Temp\pip-install-6tkl5opl\pillow\setup.py'"'"'; __file__='"'"'C:\Users\PCUSER~1\AppData\Local\Temp\pip-install-6tkl5opl\pillow\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\PCUSER~1\AppData\Local\Temp\pip-wheel-eirtb_uo' cwd: C:\Users\PCUSER~1\AppData\Local\Temp\pip-install-6tkl5opl\pillow\ Complete output (100 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.6 creating build\lib.win-amd64-3.6\PIL copying PIL\ArgImagePlugin.py -> build\lib.win-amd64-3.6\PIL copying PIL\BdfFontFile.py -> build\lib.win-amd64-3.6\PIL copying PIL\BmpImagePlugin.py -> build\lib.win-amd64-3.6\PIL <省略> copying PIL\_binary.py -> build\lib.win-amd64-3.6\PIL copying PIL\_util.py -> build\lib.win-amd64-3.6\PIL copying PIL\__init__.py -> build\lib.win-amd64-3.6\PIL running egg_info writing Pillow.egg-info\PKG-INFO writing dependency_links to Pillow.egg-info\dependency_links.txt writing top-level names to Pillow.egg-info\top_level.txt reading manifest file 'Pillow.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'Pillow.egg-info\SOURCES.txt' running build_ext building 'PIL._imaging' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools ---------------------------------------- ERROR: Failed building wheel for Pillow Running setup.py clean for Pillow Failed to build Pillow Installing collected packages: Pillow, django-widget-tweaks, django-environ, gunicorn Running setup.py install for Pillow ... error ERROR: Command errored out with exit status 1: command: 'c:\takakura\django\myenv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PCUSER~1\AppData\Local\Temp\pip-install-6tkl5opl\pillow\setup.py'"'"'; __file__='"'"'C:\Users\PCUSER~1\AppData\Local\Temp\pip-install-6tkl5opl\pillow\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\PCUSER~1\AppData\Local\Temp\pip-record-tarbkmez\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\takakura\django\myenv\include\site\python3.6\Pillow' cwd: C:\Users\PCUSER~1\AppData\Local\Temp\pip-install-6tkl5opl\pillow\ Complete output (100 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.6 creating build\lib.win-amd64-3.6\PIL copying PIL\ArgImagePlugin.py -> build\lib.win-amd64-3.6\PIL copying PIL\BdfFontFile.py -> build\lib.win-amd64-3.6\PIL copying PIL\BmpImagePlugin.py -> build\lib.win-amd64-3.6\PIL copying PIL\BufrStubImagePlugin.py -> build\lib.win-amd64-3.6\PIL copying PIL\ContainerIO.py -> build\lib.win-amd64-3.6\PIL <省略> copying PIL\__init__.py -> build\lib.win-amd64-3.6\PIL running egg_info writing Pillow.egg-info\PKG-INFO writing dependency_links to Pillow.egg-info\dependency_links.txt writing top-level names to Pillow.egg-info\top_level.txt reading manifest file 'Pillow.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'Pillow.egg-info\SOURCES.txt' running build_ext building 'PIL._imaging' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\takakura\django\myenv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PCUSER~1\AppData\Local\Temp\pip-install-6tkl5opl\pillow\setup.py'"'"'; __file__='"'"'C:\Users\PCUSER~1\AppData\Local\Temp\pip-install-6tkl5opl\pillow\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\PCUSER~1\AppData\Local\Temp\pip-record-tarbkmez\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\takakura\django\myenv\include\site\python3.6\Pillow' Check the logs for full command output.
どなたか教えて頂きたいです。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。