I tried installing splitterkit package using pip in python but it gives an error like ERROR: Could not find a version that satisfies the requirement splitterkit (from versions: none) ERROR: No matching distribution found for splitterkit
This seems to be the git page of the project: https://github.com/ninjiangstar/wav-splitter-library (splitterkit),
while pip install splitter would lead to another one
(This is the one in Sky's answer
, but the Project description
of splitter says:
Carefully split a large text into smaller parts. Optionally, preserve
sentence boundaries.
)
Therefore you should use the first one.
I have to note I do not know either of those.
You can try downloading the compressed file from here
and then unzip and go to the directory and run
python setup.py install
Related
I have already defined a class which I want to use in my code.
in order to import it I know I have to install it first.(I am using google's colab)
to install first I uploaded the .py file into my drive which is mounted and no problem with that.
but still there is problem with installing the package.
how can I use this predefined class correctly in my code?
!pip install robotdef.py
Collecting robotdef.py
ERROR: Could not find a version that satisfies the requirement robotdef.py (from versions: none)
ERROR: No matching distribution found for robotdef.py
I think I overlooked one thing.
If "I uploaded the .py file into my drive which is mounted and no problem with that." is the situation, you don't have to run pip, but you'll need to expand the Python path to the directory where your package(class) is installed.
I hope this may help.
import sys
sys.path.append('/foo/bar/your-modules-path')
pip fetches a package from the Python Package Index (PyPI) repository. This means that the package must be registered on the repository first.
I tried to find 'robotdef.py' or 'robotdef' using a search form on the PyPI website, but it seems that 'robotdef.py' hasn't been registered yet...
If it's on the repository, !pip install <package name> will work fine on the Colab.
Supplement
Sorry, my answer was incomplete.
It's not necessary a package to be registered on the PyPI repository, but you can install a package from local archives, etc.
I am following this tutorial found here: https://www.javacodemonk.com/post/101/image-manipulation-detection-in-python
It includes the following line:
from script.ndimage import gaussian_filter
But in order to run it, I have to install script first. According to the tutorial, this is how I should install it:
pip install script
However, when I execute this line, this is the error I get:
"Could not find a version that satisfies the requirement script (versions: )
No matching distribution found for script".
(pip is already upgraded to the latest version)
What is the correct way to install "script"?
I think it probably means scipy rather than script.
https://docs.scipy.org/doc/scipy/reference/tutorial/ndimage.html#smoothing-filters
That tutorial looks broken. The script package on pypi doesn't have a ndimage. Probably it's been broken by a spell check - i imagine it should be scipy.
Don't spell check your code, kids!
I referring url to profile data and to profile the data we need pyxplorer inside of python interpreter but when i try to install pyxplorer package it gives me error like:
Collecting pyxplorer
Could not find a version that satisfies the requirement pyxplorer (from versions: ) No matching distribution found for pyxplorer
command to install package is:
pip install pyxplorer
I know below link only about data profiling(pyxplorer)
1) https://github.com/grundprinzip/pyxplorer
2) http://nbviewer.jupyter.org/github/grundprinzip/pyxplorer/blob/master/pyxplorer_stuff.ipynb
The links which I have already tried are:
1)pip cannot install anything
2) Could not find any downloads that satisfy the requirement newrelic-plugin-agent
Thanks in advance.
It looks like the pyxplorer package on PyPI is invalid and doesn't actually contain any release data. Have a look at the releases key of the JSON for pyxplorer - it's an empty array, but normal packages look more like this.
The best solution would be to install directly from GitHub, like so:
pip install git+https://github.com/grundprinzip/pyxplorer
(You may need to use sudo on Unix-like systems or Run as Administrator on Windows)
It might also be wise to file an issue on the pyxplorer bug tracker so they know about this.
I have 64-bit python 3.4 installed, which comes with pip. I wanted to install pygame, and I know that the 32 bit version that they have on their site wouldn't work with my version of python. So I downloaded the 64-bit python 3.4 pygame package from here (pygame‑1.9.2a0‑cp34‑none‑win_amd64.whl). I renamed the package to pygame.whl and tried to use pip on the command line to install it, but it gave me this error;
Collecting pygame
Could not find a version that satisfies the requirement pygame (from versions:
)
Some externally hosted files were ignored as access to them may be unreliable
(use --allow-external pygame to allow).
No matching distribution found for pygame
So I tried using the --allow-external option, but it gave me a different error and asked me to provide a requirements file. I looked around, and found that I might need to try using the --pre option, but it gave me the exact same error as above regardless. How can I install the package?
The most likely reason you failed to install the .whl package is that you typed
pip install pygame
at the command prompt, instead of switching to the directory where you stored your renamed pygame.whl and running
pip install pygame.whl
pip requires that you give the full name of the file being installed.
The error message you got indicates that you ran the first command, and pip was looking in PyPI for pygame (which isn't there). The --allow-external command would have allowed you to specify a remote location where a source file or .whl file could be found.
In the future, I'd recommand not renaming the files downloaded from the (quite excellent) site you linked to, so that when you try to install them you're sure you're running the right command. Remember, you can always use Tab to complete file names on the command line.
My other question here just got answered about why pip svn+ was always re-downloading entire packages.
Now I have a handful more packages in my pip_requirements file that always get downloaded instead of detecting that the package requirements are satisfied.
They are the following types:
git+git://github.com/yuchant/django-jinja2.git
hg+https://bitbucket.org/yuchant/django-storages
With svn+ my packages are detected as satisfied regardless of whether I specify trunk or a specific revision. Is the pattern different for git and mercurial?
Short Answer
When using any VCS with pip requirement files you should always specify using #egg=[egg-name]
So your requirements file should contain:
git+git://github.com/yuchant/django-jinja2.git#egg=django-jinja2
hg+https://bitbucket.org/yuchant/django-storages#egg=django-storages
Long Answer
If you specify the pip requirements just like you do in your question without the #egg=[egg-name]. I'm going to call that string the egg identifier. The problem is very similar to your last question. Pip uses the egg identifier to search the currently installed python modules.
This is what happens if an egg identifier isn't specified:
Pip searches for git+git://github.com/yuchant/django-jinja2.git in the installed modules
Pip doesn't find it so it attempts to install it again
If you use an egg identifier this won't have this problem.