I am trying to run the gui program on raspberrypi3 using python3.6.1 and the wx module
I'm looking for wxpython_phoenix for the raspbian operating system, but not at https://wxpython.org/Phoenix/snapshot-builds/linux/. Do you mind installing debian8?
I am trying to install this by referring to the manual. sudo pip3 install --upgrade --pre -f https://wxpython.org/Phoenix/snapshotbuilds/linux/gtk3/debian-8/wxPython-4.0.0a3.dev3059+4a5c5d9-cp34-cp34m-linux_x86_64.whl
But is not it because it is different from the Linux operating system?
wxPython 4 is out now, which is based on Phoenix. You can just install it like this:
pip install wxPython
Note that you may need to install webkit BEFORE you install wxPython as I have had mine fail when webkit isn't there. The creators of wxPython are working on an update that will ignore this sort of thing soon.
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'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).
So, I am trying to test Celery with Tornado, but having difficulty with Celery installation.
I am using Ubuntu 12.04 LTS. I have ad Tornado working for months now. Then tried to install Celery using python -m pip install tornado-celery. But my import commands in test script don't work.
For example, I get an ImportError: unable to locate tasks when I do import tcelery, tasks.
So, I tried to uninstall Celery thinking something went wrong. Tried apt-get remove tornado-celery. I get an error saying Unable to locate package tornado-celery. So, I re-install and then it says Requirement already satisfied.
What is going on?
tasks isn't a module that comes with celery - the idea of that example is that you'd write your own file tasks.py to put your tasks in. There's an example of this in https://github.com/mher/tornado-celery/tree/master/examples
Your installation is fine (as far as I can tell), but if you do want to uninstall it, use the same program to uninstall as you did to install: something installed with pip install can only be uninstalled with pip uninstall, not apt-get uninstall.
I have read previous posts on installation issues. Nothing seems to work.
I have Ubuntu 14.04LTS, 32 bit, Anaconda python ver 2.7.
I installed pyephem using sudo pip install pyephem [after checking I have python-dev, and latest pip] Installation said it was successful.
When I run Python 2.7 and try to import ephem, it says Import error:
No Module named _libastro.
Any help will be appreciated.
If you are using Anaconda and have activated your conda environment, you should not need to use sudo — that might aim the install at your system Python, the one governed by the root account and by sudo, instead. You could try activating your conda environment and then just doing conda install ephem because it comes built in to conda, you do not need pip plus a compiler to try installing it!
Is it possible to install external packages from the canopy gui?
I can easily do this at the CLI, e.g.:
pip install --upgrade https://github.com/jkitchin/pycse/archive/master.zip
but I am going to be teaching a class of 50+ students this fall using canopy, and I would really like it if I could have them do this through canopy.
Any thoughts? Thanks,
No, currently it is not possible to install external packages from the Canopy gui.
It turns out you can do this through the ipython console by prefixing with a !:
!pip install --upgrade https://github.com/jkitchin/pycse/archive/master.zip
Thanks Robert Kern from Enthought for the tip!