Issues installing python mplcursors - python

I tried to install mplcursers to my PC.
I tried:
pip install mplcursors
It gave me error as:
Collecting mplcursors
Could not find a version that satisfies the requirement mplcursors (from versions: )
No matching distribution found for mplcursors
I also tried:
pip install git+https://github.com/anntzer/mplcursors
It gave me error as:
Collecting git+https://github.com/anntzer/mplcursors
Cloning https://github.com/anntzer/mplcursors to /tmp/pip-VP7mtD-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-VP7mtD-build/setup.py", line 1, in <module>
from setupext import find_packages, setup
File "setupext.py", line 16, in <module>
from pathlib import Path
ImportError: No module named pathlib
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-VP7mtD-build/
Anyone has idea how I can solve the issue and install the mplcursors?

Try
!pip install plotly
It is working for me hope will work for you as well

Related

Installing av lib on Raspi3 failing

Excuse me if this is a noob's question, but I am blank if it comes to Python...
I am trying to install the Python av library on a Raspberry Pi 3. But all I get is
pi#raspberrypi:~/camera_proxy $ sudo pip install av
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting av
Downloading https://files.pythonhosted.org/packages/40/e6/da37b548e9e1312fb11ffd0f31f8679e1b96d3859790a77e93a113394d34/av-8.0.3.tar.gz (2.3MB)
100% |████████████████████████████████| 2.3MB 49kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-Mwk4pG/av/setup.py", line 9, in <module>
from shlex import quote
ImportError: cannot import name quote
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-Mwk4pG/av/
I already purged and reinstalled all Python (1&3) to no avail. The Raspbian is the latest stable release.
There seems to be a quote item not found, that supposedly would be part of the shlex library?
The solution for me was to use pip3 instead of pip.

Error while importing neurokit in jupyter notebook

In Jupyter notebook, I have to import neurokit.
There was this error:
ImportError: No module named neurokit
So I tried:
!pip install neurokit
but there was another error:
IOError: [Errno 2] No such file or directory: 'README.md'
Can anyone help me with this?
This is the error:
!pip install neurokit
Collecting neurokit
Using cached https://files.pythonhosted.org/packages/aa/e4/aac4c53fb12d52c292988897bff3d003a5798ec582b267f57057bfdf6c31/neurokit-0.2.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\dell\appdata\local\temp\pip-install-i17inb\neurokit\setup.py", line 39, in <module>
long_description = open('README.md').read(),
IOError: [Errno 2] No such file or directory: 'README.md'
Try to install it as instructed in their github page:
Installation
Run the following:
pip install https://github.com/neuropsychology/NeuroKit.py/zipball/master
If that's still not working, try not using the cached copy (from your logs, you have a cached neurokit-0.2.0.tar.gz) and also force re-installation:
pip install --no-cache-dir --force-reinstall https://github.com/neuropsychology/NeuroKit.py/zipball/master
This is definitely a bug in installation package — they have forgotten to include README.md into the package. Overall, their installation packages at PyPI are quite old, the latest one is from 2017 year.
Install directly from the repository:
pip install numpy
pip install git+https://github.com/neuropsychology/NeuroKit.py#egg=neurokit

pip install asteval fails on six dependency

If I create a clean virtualenv, upgrade my pip version to 9.0.1 (most recent), and try:
$ pip install asteval
Collecting asteval
Downloading asteval-0.9.10.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-nnWnaR/asteval/setup.py", line 3, in <module>
import asteval
File "asteval/__init__.py", line 20, in <module>
from .asteval import Interpreter
File "asteval/asteval.py", line 18, in <module>
import six
ImportError: No module named six
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-nnWnaR/asteval/
Maybe I'm missing something, I thought pip should handle the dependencies? I thought it used to.
The bypass is to separately pip install six, then asteval will install. But I want to require asteval as an import requirement in my code, and I don't want to have to trace dependencies it might have and list those as requirements.
asteval is making a common mistake: importing itself into its setup.py. You should file a bug against the project, asking them to stop doing that.

Error Installing ICE on Python

I have python 3.5 and 2.7 installed (I don't know if this might be the problem) and I need to use ZeroC Ice and when I do:
sudo pip install ice
I get the following error in the terminal:
Collecting ice
Using cached ice-0.0.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-MoRI5C/ice/setup.py", line 32, in <module>
import ice
File "ice.py", line 46, in <module>
import urllib.parse
ImportError: No module named parse
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-MoRI5C/ice/
But parse is already installed (I guess):
sudo -H pip install parse
Requirement already satisfied (use --upgrade to upgrade): parse in /usr/local/lib/python2.7/dist-packages
How can I solve this please?
THanks
This is a simple mistake, try this instead.
pip install zeroc-ice
This should do the correct job.

cannot install tradingWithPython into Anaconda

C:\Users\gaucho-ucsb>pip install tradingWithPython
Collecting tradingWithPython
Using cached tradingWithPython-3.1.0.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\gaucho~1\appdata\local\temp\pip-build-gshhyv\tradingWithPython\setup.py", line 3, in <module>
import tradingWithPython as twp
File "tradingWithPython\__init__.py", line 6, in <module>
from .lib import extra
File "tradingWithPython\lib\extra.py", line 20
print('\r', self, end='')
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
c:\users\gaucho~1\appdata\local\temp\pip-build-gshhyv\tradingWithPython\
I'm trying to install the package tradingWithPython into anaconda but I keep getting this error which I can't figure out. Any help would be great thanks.
I just spoke with the author of the library and it seems that tradingwithPython only installs with Python3. It is not backwards compatible anymore.
I just tried this (because I had the same issue) and it seems to work now.

Categories

Resources