I tried installing Octave (4.2) from the command line using
brew install octave
but this does not install documentation. When I run octave, I get the following error:
octave:1> doc
error: doc: unable to find the Octave info manual, Octave installation is incomplete
Some googling indicated that I should instead run
brew install octave --with-docs
but this returns
Warning: octave: this formula has no --with-docs option so it will be ignored!
How can I install the Octave docs from the command line?
this is really delayed but since this came up in my search results, the reason if you still don't know yet is that the latest version of Octave on Homebrew is just octave-cli.
One would need to change the repo brew taps to to an older version to get the GUI.
Although, I'm thinking on sticking with the cli version for a while right now since I can still plot and stuff.
Related
I'm trying to learn how to use Plotly using VSCode, but the minute I run my code from the terminal, it says ModuleNotFoundError: No module named 'plotly' Any idea why this is happening? Python is installed via Anaconda, and if I try to do pip install plotly it tells me it's already installed. I've tried nearly everything I can find about this issue and nothing works. Any suggestions would be appreciated.
I'll also add that when I do pip install plotly it gives the following:
Requirement already satisfied: plotly in /Users/username/opt/anaconda3/lib/python3.8/site-packages (4.14.3) Requirement already satisfied: retrying>=1.3.3 in /Users/username/opt/anaconda3/lib/python3.8/site-packages (from plotly) (1.3.3) Requirement already satisfied: six in /Users/username/opt/anaconda3/lib/python3.8/site-packages (from plotly) (1.15.0)
It's possible that you have multiple python versions installed and pip installed plotly for the wrong version. Try to do pip --version and in your code (before the plotly import) do
import sys
print(sys.version)
to see if the python versions match. If they don't, you may have to call pip3 install instead.
(Would have posted this as a comment, but don't have enough reputation).
Accidental fix found: I was working with the bash shell on the VS Code terminal. I switched to the zsh shell by doing exec zsh. When I ran the file using the zsh shell, everything worked.
Fair Warning: I am extremely new to python, so please excuse any dumb mistakes I make =)
I would like to be able to open/close/manipulate/read Word documents (docx files) on my Mac using Python. The python-docx module looked really useful, so I have been trying to install it on my system, to no avail.
Here's what I've done so far:
Checked that I do indeed have python installed using the python --version command in terminal. I have version 3.7.0, so all good there.
Checked that I do indeed have pip installed - I was able to use pip install and pip uninstall commands, so all good. I also upgraded my pip version using pip install --upgrade pip to pip-19.1.1
Following the online documentation (see here), I tried pip install python-docx. This seemed to work just fine, and after the progress bar loaded all the way I saw:
Successfully built python-docx
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
Installing collected packages: python-docx
Successfully installed python-docx-0.8.10
I wasn't completely sure what pyhamcrest was, but I installed it anyway just to be safe using pip install pyhamcrest
As other sites suggested, I also tried to install Pillow, lxml, and python-dateutil using their respective install commands, and in each case saw the Requirement already satisfied: message, with an anaconda path listed.
Frustrated, I also tried easy_install python-docx, the manual version, and even pip install docx . In all cases, when I run IDLE and type from docx import Document or just import docx, I get the following message in the shell:
`Traceback (most recent call last):`
`File "/Users/[my_name]/Desktop/Medical.py", line 3, in <module> `
`import docx`
`ModuleNotFoundError: No module named 'docx'`
Could anyone help point me in the right direction? Thank you very much.
The Anaconda Python distribution has its own system of installation of packages.
After the installation of Anaconda, the variable $PATH has been modified so that anaconda python was the first, and OsX's python in the last position.
If you type "python" in a shell will execute the anaconda python, instead of the standard OsX python (which is 2.7, not 3.x).
Following the instructions of the package python-docx, you have installed it using pip, which is the default method for installing packages, but this method is not valid for Anaconda Python. So, you finished installing python-docx for the python 2.7 of OsX.
To install packages for anaconda, you must run the command
conda install <package>
The python-docx module for anaconda can be found in a separated repository called conda-forge; typing the command
conda install -c conda-forge python-docx
you will install the package and the requested dependencies.
Other useful commands are:
anaconda-navigator for exploring the Anaconda system
anaconda-project for managing projects with anaconda
idle3 for Anaconda Python shell.
Before start coding, run anaconda-navigator and take a look at the 'Learning' section.
For a better experience, I suggest PyCharm IDE for Anaconda from JetBrains.
I am trying to install MinGW-w64 in Windows 7.
.
but I keep getting the error:
"Cannot download repository.txt".
I have read multiple threads about this and downloaded multiple .exe files but none of them work for me. I have MATLAB R2016a with the bug to use the Add-ons window. I tried to install MinGW-w64 directly with some work-arounds but nothing worked. So I am trying to install MinGW-w64 directly into Windows 7 and then assign it to MATLAB as the Compiler to enable me to build s-functions in Simulink.
How to fix this problem?
I have the same error message:
Cannot download repository.txt
and I have 2 alternative solutions to install MinGW-w64 in windows :
SOLUTION 1:
Install chocolatey. Then type the following command line:
c:> choco install mingw
SOLUTION 2:
Download MinGW build ("native Windows" build). Then I was able to make GFortran work on JetBrain CLion.
i am trying to get inline graphs working in iPython notebook.. i begin by starting ipython with the command ipython notebook --pylab inline.
when i try to use the plot() function i get the following error
im running on OSX 10.6.8 and running ipython out of a virtualenv i have matplotlib and libpng installed
i also get this warning in the terminal
libpng warning: Application built with libpng-1.2.41 but running with 1.5.13
and plot() works normally when i use ipython in the terminal only when i use ipython notebook i get this error.. can someone help me with this..?
I had this problem as well. Another solution is to change the format which the notebook will render images in, from 'png' to 'svg'. This can be done in your config file. Mine is located at:
~/.ipython/profile_default/ipython_notebook_config.py
There is a line that looks like this
# c.InlineBackend.figure_format = 'png'
Uncommenting and changing to 'svg' did the trick for me:
c.InlineBackend.figure_format = 'svg'
This recent question on this board is similar to yours: matplotlib and libpng issues with ipython notebook
See if the solution there solves your issue.
so i finally got this working..
first off i had to get all my outdated ports updated
first i did port selfupdate
then sudo port update outdated
after that i reinstalled ipython using mac ports
sudo port install py27-ipython
then i had to install tornado and pyzmq respectively as ipython depends on it
sudo port install py27-tornado
sudo port install py27-zmq
and then ran it from the terminal
ipython notebook --pylab inline
everything works fine now i can plot maps inline in ipython!
i guess the reason it didnt work before was some problems with pip maybe its installing matplotlib that is build only for libpng 1.2.41 ??... so anyways if anyone else faces this problem id suggest reinstalling all the libraries and ipython via mac ports thats the only thing that worked for me.
Since it was complaining that the versions of libpng used for building and for running are different, I have reinstalled the matplotlib by forcing the path to includes.
CFLAGS="`libpng-config --cflags`" pip install matplotlib -I
Trying to use edebug to work on an emacs lisp library. I can effectively set breakpoints and break on them when I run the defun, unfortunately when I use i to step into something, I get the error:
Can't find library /usr/share/emacs/23.3/lisp/emacs-lisp/cl-macs.el
It's not lying, that library doesn't exist, only the compiled version (.elc) exists. It was installed using:
apt-get install emacs23-nox
Any ideas on how to get it going?
On a Debian-derived distro, the bare emacs23 package does not include the Elisp sources (nor any documentation, etc). To install them, sudo apt-get install emacs23-el