+

전체 사용자 설치로 하면 사용자 권한 문제로 pip로 설치시 안되는 수가 있어서 --user 옵션을 주어야 함

Could not install packages due to an EnvironmentError: [WinError 5] 액세스가 거부되었습니다: 'c:\\program files (x86)\\python37-32\\lib\\site-packages\\pip-19.0.3.dist-info\\entry_points.txt'
Consider using the `--user` option or check the permissions.

 

---

python 3.7.3에

mingw 실패

ms vs community에 14.0 빌드툴 추가해도 실패

 

python 3.4.3 에

mingw 실패

 

그래서 고민하다가 원래대로 해보겠다고 고생중

 

Microsoft Visual C++ 14.0 standalone: Visual C++ Build Tools 2015 (x86, x64, ARM)

This is a standalone version of Visual C++ 14.0 compiler, you don't need to install Visual Studio 2015.

  • Install Microsoft Visual C++ Build Tools 2015. Check Windows 8.1 SDK and Windows 10 SDK options.

  • The setuptools Python package version must be at least 24.0.

 Visual C++ Build Tools 2015 was upgraded by Microsoft to Build Tools for Visual Studio 2017. See the previous paragraph to install it.

[링크 : https://wiki.python.org/moin/WindowsCompilers]

 

 

microsoft visual C++ Build Tools 2015를 까는데 별다른 체크옵션 없던데..

[링크 : https://www.microsoft.com/ko-kr/download/details.aspx?id=48159]

 

아래 경로를 PATH에 추가

C:\Program Files (x86)\MSBuild\14.0\Bin

[링크 : http://www.sysnet.pe.kr/2/0/11275]

 

MSBuild tool 로도 안되네..

    ERROR: Complete output from command 'c:\program files (x86)\python37-32\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\shin\\AppData\\Local\\Temp\\pip-install-i1zl3xr6\\PyOpenGL-accelerate\\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\shin\AppData\Local\Temp\pip-record-kda1gypo\install-record.txt' --single-version-externally-managed --compile --user --prefix=:
    ERROR: Unable to import numpy, skipping numpy extension building
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.7
    creating build\lib.win32-3.7\OpenGL_accelerate
    copying .\setup.py -> build\lib.win32-3.7\OpenGL_accelerate
    copying .\__init__.py -> build\lib.win32-3.7\OpenGL_accelerate
    running build_ext
    building 'OpenGL_accelerate.wrapper' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command "'c:\program files (x86)\python37-32\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\shin\\AppData\\Local\\Temp\\pip-install-i1zl3xr6\\PyOpenGL-accelerate\\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\shin\AppData\Local\Temp\pip-record-kda1gypo\install-record.txt' --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in C:\Users\shin\AppData\Local\Temp\pip-install-i1zl3xr6\PyOpenGL-accelerate\

 

visual studio community 받기

[링크 : https://visualstudio.microsoft.com/ko/downloads]

 

windows 8.1 / 10 SDK

[링크 : https://developer.microsoft.com/ko-kr/windows/downloads/sdk-archive]

 

 

+

2019.05.02

도대체 저걸 어떻게 해야하려나...

wrapper.c를 찾아봐야겠네

 C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe
 /c /nologo /Ox /W3 /GL /DNDEBUG /MD 
-IC:\Users\shin\AppData\Local\Temp\pip-install-1qm70fwh\PyOpenGL-accelerate\.. 
-IC:\Users\shin\AppData\Local\Temp\pip-install-1qm70fwh\PyOpenGL-accelerate\src 
-IC:\Users\shin\AppData\Local\Temp\pip-install-1qm70fwh\PyOpenGL-accelerate 
"-Ic:\program files (x86)\python37-32\include" 
"-Ic:\program files (x86)\python37-32\include" 
"-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" 
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" 
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" 
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" 
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" 
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" 
/Tcsrc\wrapper.c 
/Fobuild\temp.win32-3.7\Release\src\wrapper.obj

'Programming > python(파이썬)' 카테고리의 다른 글

python wxpython  (0) 2019.05.08
PyOpenGL + ubuntu 18.04  (0) 2019.05.02
python + openGL  (0) 2019.04.30
python + openCV 공부 시작  (0) 2019.04.30
pypy  (0) 2018.04.04
Posted by 구차니