我在OS X Yosemite 10.10.5上爲機器學習項目設置環境時遇到了很多麻煩。Conda安裝 - Python3,Tensorflow,skdata - 一個環境
目標: 使用skData庫獲取數據集,使用python 3編程並使用Tensorflow庫。最終創造一個擁有所有三個環境的環境。 (我一直在使用暢達,因爲我安裝蟒蛇,那是推薦的方法)
問題: 好像爲了創建Tensorflow的環境下,我不得不使用康達,但我只能得到skData使用PIP 。 當我試圖conda install skdata
,終端說
Error: Package missing in current osx-64 channels:
pip
是張流內的包,所以我嘗試使用
pip install SKdata
得到SKdata包放到我的Python 3 tensorflow環境,打了一個錯誤
的牆Collecting skdata
Using cached skdata-0.0.4.tar.gz
Complete output from command python setup.py egg_info:
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: Can't open /private/var/folders/nm/xbyhr1490q1bbfpyw41nfgg00000gp/T/pip-build-jyouqltk/skdata/build/py3k: [Errno 2] No such file or directory: '/private/var/folders/nm/xbyhr1490q1bbfpyw41nfgg00000gp/T/pip-build-jyouqltk/skdata/build/py3k'
RefactoringTool: No files need to be modified.
RefactoringTool: There was 1 error:
RefactoringTool: Can't open /private/var/folders/nm/xbyhr1490q1bbfpyw41nfgg00000gp/T/pip-build-jyouqltk/skdata/build/py3k: [Errno 2] No such file or directory: '/private/var/folders/nm/xbyhr1490q1bbfpyw41nfgg00000gp/T/pip-build-jyouqltk/skdata/build/py3k'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/nm/xbyhr1490q1bbfpyw41nfgg00000gp/T/pip-build-jyouqltk/skdata/setup.py", line 64, in <module>
raise Exception('2to3 failed, exiting ...')
Exception: 2to3 failed, exiting ...
Copying source tree into build/py3k for 2to3 transformation...
Converting to Python3 via 2to3...
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/nm/xbyhr1490q1bbfpyw41nfgg00000gp/T/pip-build-jyouqltk/skdata/
注:我得到同樣的錯誤,當我嘗試pip install skdata --user
我的環境是我的蟒蛇文件夾設置