homebrew

how to get spyder's python recognize external packages on MacOS X?

北城余情 提交于 2019-12-21 04:32:04
问题 I have spyderlib installed on my MacOS X (10.6.8) using the official dmg file. In parallel, I have installed packages using both pip and homebrew from the terminal (i.e. opencv, gdal...). As Spyder is using its own python version, I cannot access my external packages within Spyder. When Homebrew install a package, it instals it in the /usr/local/lib... directory, which is not avalaible to add using the Python Path manager of Spyder.The entire directory /usr/... is hidden. The only relevant

how to get spyder's python recognize external packages on MacOS X?

淺唱寂寞╮ 提交于 2019-12-21 04:32:01
问题 I have spyderlib installed on my MacOS X (10.6.8) using the official dmg file. In parallel, I have installed packages using both pip and homebrew from the terminal (i.e. opencv, gdal...). As Spyder is using its own python version, I cannot access my external packages within Spyder. When Homebrew install a package, it instals it in the /usr/local/lib... directory, which is not avalaible to add using the Python Path manager of Spyder.The entire directory /usr/... is hidden. The only relevant

Python Versions on Mac

为君一笑 提交于 2019-12-21 03:42:17
问题 I'm working on Mac Os 10.7 (Lion) and I have some questions: What is the pre-installed version of python on Lion? I've been working on this computer for some time now, and i've installed lots of software in order to do college work many times I didn't know what I was really doing. The thing is: now I hava on the /Library/Frameworks/Python.framework/Versions/ a folder called "7.0" I'm pretty sure there no python version 7. Is this folder native or a third-part program installation. Can I

brew-installed Python not overriding system python

空扰寡人 提交于 2019-12-21 02:35:11
问题 I just used brew to install Python 3 on OS X. The python3 command now starts the interpreter using brew Python 3.6, but python still opens the interpreter with the default system Python 2.7. My understanding was that, by default, brew Python should now override system Python. (I.e., see Order of /usr/bin and /usr/local/bin and more in $PATH). In my PATH, /usr/local/bin comes before /usr/bin, so it shouldn't be a PATH issue. I have tried restarting Terminal, with no effect. Here is my full

WARNING: Your version of git is 1.9.3. has serious security vulnerabilities

淺唱寂寞╮ 提交于 2019-12-20 23:20:03
问题 I received a warning regarding serious security vulnerability of git 1.9.3 during deploy to Heroku I tried to update git via homebrew but found that git was not originally installed via homebrew Then I installed it via homebrew brew update brew install git ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/git-2.2.1.mavericks.bottle.tar.gz ######################################################################## 100.0% ==> Pouring git-2.2.1.mavericks.bottle.tar.gz ==> Caveats

MAC使用homeBrew安装Redis

守給你的承諾、 提交于 2019-12-20 21:03:08
一般买了macbook第一件事就是把homeBrew和iterm2装上,它们俩的组合可以实现绝大多数的软件安装。网上有很多教程安装它们的,关于homeBrew的操作命令如下: brew search ** //查找某个软件包 brew list //列出已经安装的软件的包 brew install ** //安装某个软件包,默认安装的是稳定版本 brew uninstall **//卸载某个软件的包 brew upgrade ** //更新某个软件包 brew info ** //查看指定软件包的说明 brew cache clean //清理缓存 现在我们尝试在mac上通过homeBrew安装redis brew search redis //出现如下 ==> Searching local taps… hiredis redis redis-leveldb redis@2.8 redis@3.2 ==> Searching taps on GitHub… homebrew/cask/redis-app ==> Searching blacklisted, migrated and deleted formulae… 安装redis3.2版本 brew install redis@3.2 安装完成提示如下 //把redis的环境变量配置到.zshrc中 If you need

How can I install opencv2 with brew under OSX

浪尽此生 提交于 2019-12-20 19:29:24
问题 Recently, I installed opencv with the following command: brew install opencv I found opencv3 was installed in dir /usr/include and /usr/lib . But what I want is opencv2. How can install opencv2 with the brew command? 回答1: The easiest way to find the answer is to use brew search to look for available packages. So, in your case: brew search opencv There you will see the package opencv@2 listed. So, you need: brew install opencv@2 回答2: I can't give you a answer in context of using brew but I can

libxml-ruby: Failed to build gem native extension

被刻印的时光 ゝ 提交于 2019-12-20 18:31:56
问题 I'm trying to install libxml-ruby . I have installed libxml2 , libxslt and coreutils I have also read other posts regarding the issue but none solved it for me. brew list libxslt /opt/boxen/homebrew/Cellar/libxslt/1.1.28_1/bin/xslt-config /opt/boxen/homebrew/Cellar/libxslt/1.1.28_1/bin/xsltproc /opt/boxen/homebrew/Cellar/libxslt/1.1.28_1/include/libexslt/ (3 files) /opt/boxen/homebrew/Cellar/libxslt/1.1.28_1/include/libxslt/ (21 files) /opt/boxen/homebrew/Cellar/libxslt/1.1.28_1/lib/libexslt

How to use Homebrew's version of Mono with Xamarin

做~自己de王妃 提交于 2019-12-20 17:29:56
问题 I recently installed Xamarin Studio, and the next time I went to run brew doctor, I got this warning: Warning: /Library/Frameworks/Mono.framework detected This can be picked up by CMake's build system and likely cause the build to fail. You may need to move this file out of the way to compile CMake. So I moved Mono.framework out of the way to my desktop and that fixed the problem, but when I went to open Xamarin Studio, it said: Could not launch Xamarin Studio This application requires the

Mac OSX Lion Postgres does not accept connections on /tmp/.s.PGSQL.5432

a 夏天 提交于 2019-12-20 14:41:29
问题 I'm getting a common Mac OSX error for Homebrew installations of Postgres, No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? This is apparently due to there being multiple installs on the system. However, the usual steps are not resolving things. I can successfully start Postgres and running: ps auxw | grep post returns .. euanmillar 847 0.0 0.0 2432768 588 s000 R+ 11:19am 0:00.00 grep postgres euanmillar 845 0.0 0.0