Open Jayms17 opened 7 years ago
sudo pip2 install scipy numpy matplotlib ipython[all] --upgrade
On Thu, Oct 13, 2016 at 12:28 AM Jayms17 notifications@github.com wrote:
Здравствуйте. У меня Mac OS X El Capitan. На попытку установить pylab терминал выдаёт: Collecting pylab: Collecting pylon Could not find a version that satisfies the requirement pylab (from versions: ) No matching distribution found for pylab. Либо если через Анаконду: Jayms17-2:~ Anna$ conda install pylab Fetching package metadata ...... Solving package specifications: . PackageNotFoundError: Package not found: '' Package missing in current osx-64 channels:
- pylab
Close matches found; did you mean one of these?
pylab: impyla
You can search for packages on anaconda.org with
anaconda search -t conda pylab
И я не знаю как это обойти. Подскажите, пожалуйста, что делать?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vkantor/MIPT_Data_Mining_In_Action_2016/issues/15, or mute the thread https://github.com/notifications/unsubscribe-auth/AKBNU9w13ZbmvtMKUBheovlYDr3boFN2ks5qzVDygaJpZM4KVPYZ .
Yours sincerely, Ashuha Arseniy.
Опять ошибку выдает(
Jayms17-2:~ Anna$ sudo pip2 install scipy numpy matplotlib ipython[all] --upgrade
Password:
The directory '/Users/Anna/Library/Logs/pip' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/Anna/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
You are using pip version 6.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The directory '/Users/Anna/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting scipy
Downloading scipy-0.18.1.tar.gz (13.1MB)
100% |████████████████████████████████| 13.1MB 37kB/s
Complete output from command python setup.py egg_info:
Running from numpy source directory.
/tmp/easy_install-HmJwUU/numpy-1.11.2/setup.py:327: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
warnings.warn("Unrecognized setuptools command, proceeding with "
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
non-existing path in 'numpy/distutils': 'site.cfg'
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable f90
Could not locate executable f77
Could not locate executable xlf90
Could not locate executable xlf
Could not locate executable ifort
Could not locate executable ifc
Could not locate executable g77
Could not locate executable g95
Could not locate executable pgfortran
don't know how to compile Fortran code on platform 'posix'
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Traceback (most recent call last):
File "
File "/tmp/easy_install-HmJwUU/numpy-1.11.2/setup.py", line 378, in setup_package
test_suite='nose.collector',
File "/tmp/easy_install-HmJwUU/numpy-1.11.2/numpy/distutils/core.py", line 169, in setup
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 151, in run
self.run_command("egg_info")
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/easy_install-HmJwUU/numpy-1.11.2/numpy/distutils/command/egg_info.py", line 18, in run
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/easy_install-HmJwUU/numpy-1.11.2/numpy/distutils/command/build_src.py", line 147, in run
File "/tmp/easy_install-HmJwUU/numpy-1.11.2/numpy/distutils/command/build_src.py", line 158, in build_sources
File "/tmp/easy_install-HmJwUU/numpy-1.11.2/numpy/distutils/command/build_src.py", line 293, in build_library_sources
File "/tmp/easy_install-HmJwUU/numpy-1.11.2/numpy/distutils/command/build_src.py", line 376, in generate_sources
File "numpy/core/setup.py", line 653, in get_mathlib_info
RuntimeError: Broken toolchain: cannot link a simple C program
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-DFARXG/scipy
Смотри, первое что нужно делать -- вставлять ошибку в гугл
Напиши вышло или нет?
Это первое, что я сделал - прогуглил. Просто я уже выдохся и ничего не понял в итоге, что там все советуют.
Первый вариант у Вас гцц не установлен, если нету brew, то он просто ставится -- brew install gcc Второй вариант, нужно попробовать с хитрыми флагами sudo ARCHFLAGS=-Wno- error=unused-command-line-argument-hard-error-in-future pip install --upgrade numpy
On Thu, Oct 13, 2016 at 1:24 AM Jayms17 notifications@github.com wrote:
Это первое, что я сделал - прогуглил. Просто я уже выдохся и ничего не понял в итоге, что там все советуют.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/vkantor/MIPT_Data_Mining_In_Action_2016/issues/15#issuecomment-253357315, or mute the thread https://github.com/notifications/unsubscribe-auth/AKBNUxEEKv_Vy_QVUfbDbkDIvgnDGdhuks5qzV4GgaJpZM4KVPYZ .
Yours sincerely, Ashuha Arseniy.
Спасибо, до завтра попытаюсь разобраться и отпишусь.
Установил gcc, опять не работало. Заменил в итоге строчку %pylab inline на import pylab и тут наконец стало работать)
Здравствуйте. У меня Mac OS X El Capitan. На попытку установить pylab терминал выдаёт: Collecting pylab: Collecting pylon Could not find a version that satisfies the requirement pylab (from versions: ) No matching distribution found for pylab. Либо если через Анаконду: Jayms17-2:~ Anna$ conda install pylab Fetching package metadata ...... Solving package specifications: . PackageNotFoundError: Package not found: '' Package missing in current osx-64 channels:
Close matches found; did you mean one of these?
You can search for packages on anaconda.org with
И я не знаю как это обойти. Подскажите, пожалуйста, что делать?