I've been using jupyter on windows until now but I want to install it on my RHEL machine. I can't seem to find anything other than pip which is not an option for me.
Is there an rpm package?
On RHEL systems, one typically runs "yum search jupyter" to find a package.
At least on CentOS7, there is no jupyter package available.
There is a python-jupyter package on Fedora 24 which might be back ported (and might be usefully added to EPEL if you request).
Related
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 have installed jupyter - but to double check ran the install again:
pip install jupyter
..
Requirement already satisfied (use --upgrade to upgrade): jupyter in ./.local/lib/python2.7/site-packages
However there is no jupyter (or jupyter-notebook etc.) on the $PATH or anywhere under /usr
find /usr -name jupyter
Where is it installed? I am on ubuntu 16.0.4
Maybe I'm wrong but is your
PYTHONPATH
correct?
Because it should be installed there :
/usr/local/lib/python2.7/dist-packages
or
/usr/lib/python2.7/dist-packages
And if really you struggle with system based python and Jupyter, I think you should install Anaconda instead.
It's the most used, production ready, compartimented python environment.
And it has jupyter built-in.
To finish my argumentation, it's the recommanded way to install Jupyter.
I have a CentOS 7 Vagrant virtual machine that I'd like to do some development work from. Accordingly, I'd like the latest version of Emacs (24.5) so that I can install Spacemacs.
However, when I ssh into the box and run the command sudo yum update emacs and sudo yum upgrade emacs, I simply get back the message No packages marked for update. I've also run yum update and yum upgrade to no avail.
So how do I go about getting me some sweet sweet Emacs 24.5? Thanks.
The latest RPM I could find for emacs on CentOS 7 (7.2) is 24.3.
You can install it via yum with the following code, after downloading the rpm:
yum localinstall emacs-24.3-18.el7.x86_64.rpm
If you want to compile it yourself, there is a Github repo with the source and instructions on how to do that.
They also have tagged releases if you prefer something a little more stable to choose from.
As of this post, the latest version they have available is emacs-25.0.92, with releases going back to the version you requested.
Is compiling Emacs 24.5 an option for you? It shouldn't be a big deal.
My answer assumes that you performed a reasonable online search, without success, for a yum repository containing that particular version of Emacs.
I see some tutorials online but they only show how to install git onto Cygwin AS you are installing Cygwin. I already have cygwin installed and customized so I'd prefer not to repeat that step. How do I install the git framework so I can use it for github?
Thank you.
In the world of Cygwin, there is really no such thing as only installing a package AS you are installing Cygwin. Cygwin was inherently designed with a setup.exe to be run multiple times when necessary.
There are thousands of packages available in the Cygwin repo mirrors. From what you are saying, it sounds as if you had a single go-round with the setup file and then planned to never install any additional available packages or upgrade them in the future. This is what the Cygwin setup file is specifically used for.
If you don't currently have Git installed in your particular Cygwin environment, just run setup.exe again and select the package. It should automatically detect your current installation directory and package directory and previously-selected mirror. When you mark the Git package for installation, it will automatically download all dependencies, just like apt-get or any other *NIX package manager.
There is also an abandoned project called apt-cyg that I still use religiously, especially on remote systems over SSH in order to avoid the GUI setup.exe. apt-cyg is basically a shell script that will install your package directly from the command line, apt-get-style. It requires wget and subversion, but after the 30 seconds it takes to setup, you'd just run apt-cyg install git. It also installs dependencies, just like the GUI setup.exe.
There is also a similar alternative if you install Cygwin via Chocolatey package manager -- you can also install cyg-get (I believe it's called). The syntax is a bit different -- something like cyg-get git. I don't really like this method, because it differs from apt-cyg in the fact that it actually uses the setup.exe and just automates the process so that you don't have to click anything. I don't use this method, because the last I checked, Chocolatey only supported 32-bit Cygwin installs, which is also what the cyg-get package looks for.
apt-cyg may be abandoned, but it has yet to disappoint, and if I know what I'm looking for, I always prefer it over running the setup.exe for package installation.
It looks like the project has been picked back up and is under active development again: https://github.com/transcode-open/apt-cyg
It appears this version requires lynx to install. I don't know. I still just use the original version on Google Code that worked just fine the last I checked: https://code.google.com/p/apt-cyg/
Edit: There has been a new Cygwin package manager out for awhile called cyg-get that can be installed via Chocolatey.
I'm not sure if it only works for Chocolatey-installed Cygwin installations or not, as Chocolatey doesn't install Cygwin in the normal locations anymore by default. Feel free to comment, but cyg-get is now my Cygwin package manager of choice unless I'm running an older installation of Cygwin that was not installed by Chocolatey. I avoided it for a while because they only supported 32-bit installations, but I can confirm that Chocolatey now supports 64-bit installations of Cygwin, and the cyg-get package manager works perfectly with it. I have a function sourced from my ~/.bashrc where I can use either apt or apt-get (with or without the install parameter, and it will just call cyg-get.bat with the programs I have specified to install.
http://redmine.jamoma.org/projects/1/wiki/Installing_and_setting_up_GIT
By following the steps mentioned in the link for windows you can install git using cygwin
And would the fact that I already have a different version of iPython matter? I already used brew install to get ipython, but I need to use Enthought Canopy for a class, so I need to download that also.
1) You can't install canopy with homebrew. If you have an academic email address, request a canopy academic license at https://store.enthought.com/#canopy-academic . Whether you do or not, download from https://store.enthought.com/downloads/ and install following the instructions there.
2) When you first run Canopy, un-check "Make Canopy my default Python" and there should be no conflict with your existing install. See https://support.enthought.com/entries/23646538-Make-Canopy-User-Python-be-your-default-Python