homebrew

ipython: command not found on OSX

无人久伴 提交于 2019-12-22 14:16:38
问题 I installed the python scientific environment (numpy, scipy, matplotlib, pandas, ipython) a while ago on OSX using brew and either pip or easy_install (or the 2 of them, I don't remember). Now if try to run ipython I get: -> ipython -bash: ipython: command not found Then I did: -> sudo find . -iname "*ipython*" Password: find: ./dev/fd/3: Not a directory find: ./dev/fd/4: Not a directory ./Users/jfk/.ipython ./usr/local/Cellar/matplotlib/1.2.0/lib/python2.7/site-packages/matplotlib/sphinxext

Unable to link/run Node.js v6 in Homebrew

一世执手 提交于 2019-12-22 14:11:12
问题 I'm trying to specifically install Node.js v6, which is proving confusingly difficult. On a new MacBook running Sierra, I've run: brew install node@6 This gave me: Please note by default only English locale support is provided. If you need full locale support you should either rebuild with full icu: `brew reinstall node --with-full-icu` or add full icu data at runtime following: https://github.com/nodejs/node/wiki/Intl#using-and-customizing-the-small-icu-build This formula is keg-only, which

brew or pip - install credstash - errors - No named formulae found in taps / OSErr six-1.4.1-py2.7.egg-info operation not permitted

痞子三分冷 提交于 2019-12-22 11:37:21
问题 Getting the following error on my Mac Terminal window. $ pip --version pip 6.1.1 from /Library/Python/2.7/site-packages (python 2.7) Python version is 2.7.10 While trying to install credstash using brew, I'm getting the following error. $ `which python` --version && brew update && brew install credstash Python 2.7.10 Already up-to-date. Error: No available formula with the name "credstash" ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching

What techniques can you use to profile your code

可紊 提交于 2019-12-22 10:32:26
问题 Some of the platforms that I develop on, don't have profiling tools. I am looking for suggestions/techniques that you have personally used to help you identify hotspots, without the use of a profiler. The target language is C++. I am interested in what you have personally used. 回答1: I've found the following quite useful: #ifdef PROFILING # define PROFILE_CALL(x) do{ \ const DWORD t1 = timeGetTime(); \ x; \ const DWORD t2 = timeGetTime(); \ std::cout << "Call to '" << #x << "' took " << (t2 -

Homebrew not linking python correctly?

萝らか妹 提交于 2019-12-22 10:27:52
问题 I installed both python 2.7.13 and python 3.6.2 with homebrew and updated my ~/.bash_profile as such: # Homebrew export PATH=/usr/local/bin:$PATH Python3 was linked fine. However, "which python" would still give me /usr/bin/python while "which python2" produces /usr/local/bin/python2 It looks like homebrew installed python 2 as "python2" and never linked "python" to the new installation. This is causing me a lot of trouble down the road when installing virtualenvwrapper etc. By the way, I

Permission denied installing libxml2

帅比萌擦擦* 提交于 2019-12-22 09:59:48
问题 So I'm working on updating my rails environment to support 4.0 and ruby 2.0. So far I've had some trouble installing libxslt. When run in the terminal I get: $ brew install libxml2 Error: Permission denied - /usr/local/lib/python2.7/site-packages/sitecustomize.py I'm running this as a root user so the permission denied message is quite puzzling. Any help is appreciated. 回答1: You shouldn't install things to /usr/local as root or via sudo . From the FAQ Why does Homebrew say sudo is bad?

Homebrew unbrewed files

落爺英雄遲暮 提交于 2019-12-22 09:24:25
问题 I've been trying to use homebrew to install python and finally gotten that to work. In the process of trying to make that work I ran: brew list --unbrewed and got a huge list of files (over 59,000). These files are mostly related to python, node, ruby, mongo and mysql. I've also run brew update and brew doctor and neither one of those have any effect on the unbrewed list. It seems like not such a great idea to keep my installation in this state. So I guess I have several questions about this:

Homebrew unbrewed files

非 Y 不嫁゛ 提交于 2019-12-22 09:23:37
问题 I've been trying to use homebrew to install python and finally gotten that to work. In the process of trying to make that work I ran: brew list --unbrewed and got a huge list of files (over 59,000). These files are mostly related to python, node, ruby, mongo and mysql. I've also run brew update and brew doctor and neither one of those have any effect on the unbrewed list. It seems like not such a great idea to keep my installation in this state. So I guess I have several questions about this:

Error when installing Homebrew: dyld: Library not loaded: @rpath/libssl.1.0.0.dylib

ⅰ亾dé卋堺 提交于 2019-12-22 09:09:08
问题 I'm trying to install Homebrew on my Mac os (macOS Mojave Version 10.14.3) And I keep getting the following error (the exact message I see in my terminal): dyld: Library not loaded: @rpath/libssl.1.0.0.dylib Referenced from: /Users/[my_machine_name]/anaconda3/lib/libssh2.1.dylib Reason: image not found I see a lot of solutions mentioning some brew related commands as part of their solution, but I'm trying to install brew here so I don't have brew yet. I'm wondering what I need to do? Edit: I

Homebrew pyenv install error dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib

我们两清 提交于 2019-12-22 08:57:15
问题 After installing pyenv from Homebrew on MacOS Mojave I am getting build errors when attempting to install any python versions. When running pyenv install for any version the build will fail with error: dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib Referenced from: /usr/local/bin/awk Reason: image not found 回答1: The solution for me was to force link the readline 8 lib that I had under /usr/local/opt/readline/lib/ . > cd /usr/local/opt/readline/lib/ > ls libhistory.8