homebrew

Mac - No module named 'scipy'

眉间皱痕 提交于 2021-01-29 18:08:45
问题 I've tried everything but can't get Scipy to work. Installed Scipy via Homebrew, seemed to work fine - but then the error when trying to import it. Uninstalled, installed via pip3, no difference. Brew doctored, brew link (forced links for the unlinked kegs for Scipy AND python), no progress. Running on macOS Mojave (10.14.6). Numpy, matplotlib and much more is working fine. What am I missing here? I have two versions of python installed, but Scipy SHOULD be installed in python3.7 (which I am

Use Qwt installed via brew in CMake

狂风中的少年 提交于 2021-01-29 13:37:44
问题 I Try to build an application using Qwt with CMake on a MacOS virtual machine. I installed Qt5 and Qwt using brew: brew install qt5 qwt The result is a Qwt framework installation. The header is there: /usr/local/Cellar/qwt/6.1.4/lib/qwt.framework/Versions/6/Headers/qwt.h and the library is here file /usr/local/Cellar/qwt/6.1.4/lib/qwt.framework/qwt /usr/local/Cellar/qwt/6.1.4/lib/qwt.framework/qwt: Mach-O 64-bit dynamically linked shared library x86_64 It is easy to use it during buid with

Node version will not update using n

岁酱吖の 提交于 2021-01-29 08:57:51
问题 To give some context, I set up my machine using this Medium post, Don’t Use sudo with npm …still. I installed Node using brew about a year and a half ago, which installed v12.18.1. I also installed n at the time using brew , but never had to change versions until now. My .zshrc file includes the following: # For globally installed npm packages (without using sudo) export PATH="$HOME/.npm/bin:$PATH" # Path to n (managing node versions) export N_PREFIX="$HOME/.n" export PATH="$PATH:$N_PREFIX

Trying to update root password on mysql or create a new user is giving me /mysql/user.MYD error

孤街浪徒 提交于 2021-01-29 08:15:54
问题 I tried to make a mysql_secure_installation but after I enter the password is giving me this: ...Failed! Error: File './mysql/user.MYD' not found (Errcode: 2 - No such file or directory) Connecting using mysql cli and trying to create a new user gives me the same. Mysql is 5.7 and installed via Homebrew 回答1: You haven't initialized the database. Your error means, that the table in which users are stored doesn't exist. Have a look in your /etc/my.cnf file. There should be an entry datadir .

Command line tools not accessible from Eclipse on OSX

冷暖自知 提交于 2021-01-28 21:26:19
问题 I am using Eclipse on a macOS machine. CMake is present on my machine at /usr/local/bin/cmake and has been installed using Homebrew. Eclipse is at the latest version (2018-09). I have the following target in a Makefile, which has been set up and is visible from Eclipse: all: ./configure Rscript -e "Rcpp::compileAttributes()" R CMD INSTALL --no-multiarch --with-keep.source . Inside the configure file, there is this code: cd src/build;cmake .. However, when I double click the all target in

I can't install PIP on MacOS Sierra

旧街凉风 提交于 2021-01-28 10:52:46
问题 I've been running Python 3 in Pycharm for a while now, and I tried to install a new module and it failed to install. Specifically it gave me a "Non-zero exit code (1)" and told me to attempt to install it from my terminal using PIP. I have since updated and reinstalled Pycharm and it still will not install new modules. In the terminal, I attempted pip --version The response: -bash: pip: command not found I look up how to install PIP, and try: sudo easy_install pip This is what it said:

I can't install PIP on MacOS Sierra

╄→尐↘猪︶ㄣ 提交于 2021-01-28 10:52:37
问题 I've been running Python 3 in Pycharm for a while now, and I tried to install a new module and it failed to install. Specifically it gave me a "Non-zero exit code (1)" and told me to attempt to install it from my terminal using PIP. I have since updated and reinstalled Pycharm and it still will not install new modules. In the terminal, I attempted pip --version The response: -bash: pip: command not found I look up how to install PIP, and try: sudo easy_install pip This is what it said:

Homebrew does not create pip3 symlink on /usr/local/bin

走远了吗. 提交于 2021-01-28 05:48:03
问题 I installed python3 with homebrew but it does not create symlink to pip3. When I installed it former, homebrew created pip3 symlink at /usr/local/bin. But now it does not create. Note that I know there is a solution I am able to create symlink manually, But I don't know why homebrew does not create symlink to pip3 despite python formular looks like create symlink. (see formula of python3 on github) I using: macOS 10.13.4 python 3.6.5 Homebrew 1.6.6 Homebrew/homebrew-core (git revision d4c0;

brew install python/matplotlib not working: No module named _tkinter

我们两清 提交于 2021-01-28 03:41:42
问题 I am struggling to make basic plots in matplotlib. It looks like I'm not installing tkinter correctly, which I understand should be installed from the --with-tcl-tk flag. What could be causing my error? How can I better diagnose this problem? Downloading the ActiveState tkinter has not helped me. I uninstalled then reinstalled everything I thought was relevant. No errors were raised by brew. $ brew uninstall python $ brew uninstall matplotlib numpy --force $ brew install python --with-tcl-tk

brew install python/matplotlib not working: No module named _tkinter

荒凉一梦 提交于 2021-01-28 02:15:44
问题 I am struggling to make basic plots in matplotlib. It looks like I'm not installing tkinter correctly, which I understand should be installed from the --with-tcl-tk flag. What could be causing my error? How can I better diagnose this problem? Downloading the ActiveState tkinter has not helped me. I uninstalled then reinstalled everything I thought was relevant. No errors were raised by brew. $ brew uninstall python $ brew uninstall matplotlib numpy --force $ brew install python --with-tcl-tk