회원 로그인
|
numpy for Maya2017
: 마야 2017 설치 완료
- Python이나 Anaconda에서 2.7.x 설치
- 개발환경으로 들어가 numpy, scipy를 pip로 설치
- 설치 된 파일들 복사
- 마야 파이썬 경로에 붙여넣기 (첨부파일:numpy-1.9.2, scipy-0.16.0)
- 마야에서 import 확인
1 2 | pip install -i https://pypi.anaconda.org/carlkl/simple numpy pip install -i https://pypi.anaconda.org/carlkl/simple scipy |
mayapy 파일 위치
마야 설치 폴더\bin
파이썬 패키치 설치 확인
마야 설치 폴더\Python\Lib\site-packages
참고
설치 히스토리(pip로 설치 안됨)
pip, setuptools 업데이트
1 | mayapy -m pip install --upgrade pip setuptools |
numpy 설치
1 | mayapy -m pip install numpy |
1 | import numpy |
에러
# Error: Error in maya.utils._guiExceptHook: # File "마야 설치 폴더\Maya2017\Python\lib\site-packages\maya\utils.py", line 321, in formatGuiException # exceptionMsg = unicode(exceptionObject.args[0]) # UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 1358: ordinal not in range(128) # # Original exception was: # Traceback (most recent call last): # File "<maya console>", line 2, in <module> # File "마야 설치 폴더\Maya2017\Python\lib\site-packages\numpy\__init__.py", line 142, in <module> # from . import core # File "마야 설치 폴더\Maya2017\Python\lib\site-packages\numpy\core\__init__.py", line 71, in <module> # raise ImportError(msg) # ImportError: # # IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! # # Importing the multiarray numpy extension module failed. Most # likely you are trying to import a failed build of numpy. # Here is how to proceed: # - If you're working with a numpy git repository, try `git clean -xdf` # (removes all files not under version control) and rebuild numpy. # - If you are simply trying to use the numpy version that you have installed: # your installation is broken - please reinstall numpy. # - If you have already reinstalled and that did not fix the problem, then: # 1. Check that you are using the Python you expect (you're using 마야 설치 폴더\Maya2017\bin\maya.exe), # and that you have no directories in your PATH or PYTHONPATH that can # interfere with the Python and numpy versions you're trying to use. # 2. If (1) looks fine, you can open a new issue at # https://github.com/numpy/numpy/issues. Please include details on: # - how you installed Python # - how you installed numpy # - your operating system # - whether or not you have multiple versions of Python installed # - if you built from source, your compiler versions and ideally a build log # # Note: this error has many possible causes, so please don't comment on # an existing issue about this - open a new one instead. # # Original error was: DLL load failed: 지정된 모듈을 찾을 수 없습니다. # |
scipy 설치
1 | c:\Program Files\Autodesk\Maya2017\bin>mayapy -m pip install scipy |
1 | import numpy |
에러
# Error: cannot import name _distributor_init # Traceback (most recent call last): # File "<maya console>", line 1, in <module> # File "마야 설치 폴더\Maya2017\Python\lib\site-packages\numpy\__init__.py", line 140, in <module> # from . import _distributor_init
# ImportError: cannot import name _distributor_init # |
numpy 삭제
1 | mayapy -m pip uninstall numpy |
numpy 1.13.3 버전으로 설치
1 | mayapy -m pip install numpy==1.13.3 |
에러
(처음 numpy 에러와 비슷한...)
다시 원점
scipy 삭제
1 | mayapy -m pip uninstall scipy |
scipy 0.19.1 버전으로 설치
1 | mayapy -m pip install scipy==0.19.1 |
- 컴파일 할 시 2-14~2018은 아래와 같이 진행하라 했는데 pip로 될 줄 알고 설치해봄
- http://discourse.techart.online/t/numpy-1-13-1-scipy-0-19-1-for-maya-2018/9121
참고
Building Python 2.7.10 with Visual Studio 2010 or 2015
- numpy-1.9.2.zip (12.3MB) (3)
- scipy-0.16.0.zip (15.1MB) (2)
댓글 0개
| 엮인글 0개
466개(1/24페이지)
번호 | 제목 | 글쓴이 | 조회 | 날짜 |
---|---|---|---|---|
마야 뷰포트 네비게이션 팁 | 푸딩뱃살 | 42186 | 2020.04.06 17:22 | |
Maya 버전 별 Python 버전 | 푸딩뱃살 | 63549 | 2014.01.08 17:59 | |
464 | [Dev] Autodesk Maya Devkit 다운로드 | 푸딩뱃살 | 676 | 2023.01.28 14:28 |
463 | [Base] (해결 중) modules 환경설정 중 | 푸딩뱃살 | 609 | 2022.11.09 11:47 |
462 | [Script] pymel 딕셔너리형 사용 시 KeyError | 푸딩뱃살 | 807 | 2022.11.07 12:08 |
461 | [오류] Building Numpy for Maya Python 2.7.x | 푸딩뱃살 | 577 | 2022.10.23 14:38 |
460 | [Base] 뷰포트에서 조절자가 안 보일때 | 푸딩뱃살 | 747 | 2022.10.13 15:47 |
459 | [Rigging] mirror joints 사용 시 유의 사항 | 푸딩뱃살 | 746 | 2022.10.04 10:46 |
458 | [Script] 2022에서 enum34 모듈 설치 금지 | 푸딩뱃살 | 586 | 2022.08.17 18:08 |
457 | [Script] pymel 예제 | 푸딩뱃살 | 606 | 2022.07.05 19:20 |
456 | [Script] 인코드 / 디코드 - 2.7 한글 사용 | 푸딩뱃살 | 878 | 2022.03.08 17:52 |
455 | [Dev] ui 없이 mayapy로 자동화 | 푸딩뱃살 | 678 | 2022.02.17 13:56 |
454 | [Dev] mayapy로 ui파일 py로 | 푸딩뱃살 | 515 | 2022.02.15 18:20 |
453 | [오류] Error : MayaBonusTools | 푸딩뱃살 | 887 | 2022.01.21 17:52 |
452 | [오류] Error: ModuleNotFoundError | 푸딩뱃살 | 748 | 2022.01.21 16:24 |
451 | [Dev] mayapy | 푸딩뱃살 | 623 | 2022.01.19 20:08 |
450 | [Base] function selCom at 0x7f29c5c04aa0 | 푸딩뱃살 | 589 | 2022.01.19 17:24 |
449 | [Base] wireframe on shaded 단축키 만들기 | 푸딩뱃살 | 880 | 2022.01.04 10:55 |
448 | [오류] OpenCL Error | 푸딩뱃살 | 506 | 2021.12.28 01:40 |
447 | [Script] Easily Translate MEL Commands to Python | 푸딩뱃살 | 799 | 2021.12.02 11:22 |
446 | [Base] output window 띄우지 않기 | 푸딩뱃살 | 783 | 2021.11.24 21:44 |
445 | [Rigging] shapeEditorManager 삭제 안됨 | 푸딩뱃살 | 862 | 2021.11.12 23:30 |