I am trying to install rosbag using pip:
pip install python-rosbag
But I am getting the following error:
(base) C:\Users\santhoshe.e\annotator-master>pip install python-rosbag
Collecting python-rosbag
ERROR: Could not find a version that satisfies the requirement python-rosbag (from versions: none)
ERROR: No matching distribution found for python-rosbag
How can I install rosbag in windows other than using pip? Or the pip I used is wrong?
pyrosbag is actually a different package from rosbag.
The right way should be
conda install -c conda-forge ros-rosbag
After that, you can run import rosbag in Python.
I think it should be this:
pip install pyrosbag
Try this to install pyrosbag using pip:
pip install pyrosbag
Now in the docs, the Usage page shows the import command as:
import pyrosbag
I would suggest to install ros noetic (I installed the desktop-full version).
See link: http://wiki.ros.org/noetic/Installation/Ubuntu
If you then source the setup script for ros via the following command:
source /opt/ros/noetic/setup.bash
Python should be able to import rosbag.
Actually for rosbag, it is not very easy to install by using pip.
However you can use installation steps defined in ROS wiki.
But it is not done after installing rosbag, you should also add PYTHONPATH for the rosbag in your interpreter. Which can be done by simply selecting File>Settings>Project Interpreter and click the gear right next to your interpreter.
After that you will see two options : Add/ShowAll. Go with Show All and on the window that opened, on the right hand side, you will see +,-,..., a symbol that shows the paths for the selected interpreter (the symbol listed at the end)
Under these paths you should also define the path that you installed ros. For me, the path is :
/opt/ros/melodic/lib/python2.7/dist-packages
Related
I use Python and pycharm as a tool.
If you use the pip statement to install the library, you will get an error.
For example, if I want to download the torch (1.6.0) version and type pip install torch==1.6.0,
It says no version.
This is not the end, but some libraries continue to cause strange conflicts and will not be installed.
For example, if you type pip install poro to install the poro library, an unknown error pops up and the installation fails.
I'm not asking for a pororo installation.
My question is, I want to know how to download the library without relying on pycharm.
I want to download it separately from a site like pypi and put the library directly into the virtual environment (conda).
What should I do?
The following worked for me:
First, install mkl using conda:
conda install -c anaconda mkl
Then run this:
conda install -c pytorch pytorch
I'm trying to install a python module, 'pyAudioProcessing' (https://github.com/jsingh811/pyAudioProcessing) on my Linux Mint distribution, and one of the items in requirements.txt is causing issues: python-magic-bin==0.4.14. When I run pip3 install -e pyAudioInstaller, I get an error:
ERROR: Could not find a version that satisfies the requirement python-magic-bin==0.4.14 (from pyAudioProcessing==1.1.5) (from versions: none)
ERROR: No matching distribution found for python-magic-bin==0.4.14 (from pyAudioProcessing==1.1.5)
The same error appears if I try to manually install the module using pip3 install python-magic-bin. The module installs without issues on my windows machine.
pypi.org lets me download files for it manually, however only Windows and MacOS .whl files are available. I tried simply removing the requirement from the list, but that resulted in a large number of other errors to appear, so I assume the module is legitimately required.
Thee is another module called python-magic-debian-bin that I can download. Is there a simple way to convince pyAudioInstaller to use this other module instead of the original? Like can I somehow rename python-magic-debian-bin to python-magic-bin and hope it works out?
python-magic-bin 0.4.14 provides wheels for OSX, w32 and w64, but not for Linux. And there is no source code at PyPI.
You need to install it from github:
pip install git+https://github.com/julian-r/python-magic.git
As for pyAudioProcessing I can see 2 ways to install it:
Clone the repository and edit requirements/requirements.txt, replace python-magic-bin==0.4.14 with pip install git+https://github.com/julian-r/python-magic.git#egg=python-magic;
Install requirements manually and then install pyAudioProcessing without dependencies:
pip install --no-deps pyAudioProcessing
or
pip install --no-deps git+https://github.com/jsingh811/pyAudioProcessing.git
The library has updated the requirements very recently for it to work on Linux.
pip install -U pyAudioProcessing
Should get it all set up for you.
Alternatively, https://github.com/jsingh811/pyAudioProcessing the readme describes other getting started methods as well.
I am new to Python and Conda. I am trying to install a package called DavGIS. I downloaded this package and I downloaded Anaconda. Then I opened Anaconda Prompt and tried to install the package with the command conda install davgis. This gave an error message regarding not begin available on current channels.
Then I tried pip install davgis, but this gives an error as well. In the picture the commands and errors are showed. I am using Windows 10 64-bit and Anaconda with Python 3.6
Errors installing package:
You cannot install this package, because there is no package. A python package contains a file called "setup.py". And to install it with pip (or conda) it need to be referenced on their server.
If you want to use it in your project, you can copy it directly in your source folder (where your code is).
If you wanna do it without copying, you can follow this method: How to install Python module without setup.py?
I need to import
1.yaml
2.pypiper
modules to the latest PyCharm IDE. I can not find pypiper in the list of available modules. When I am trying to add a new repository for the pypiper:
https://github.com/epigen/pypiper.git
still the same: typing pypiper in the search field does not yield anything.
yaml at the same time can be found, but it is giving me an error when I am trying to add it:
Could not find a version that satisfies the requirement yaml (from versions: )
No matching distribution found for yaml
PyCharm looks for packages in the repositories that it has been told to look in. By default it looks at https://pypi.python.org/simple.
Effectively this means that if you cannot install something through pip, you cannot install through the PyCharm interface.
What you need to do is to figure out:
How to install yaml
sudo pip install pyyaml
How to install pypiper
pip install --user https://github.com/epigen/pypiper/zipball/master
When I run into these issues it's easiest for me to just install on the command line opposed to through PyCharm unless it's a virtual env. Just make sure your pip is referencing the same python interpreter you are using in PyCharm or you still wont see it in PyCharm.
I issue a command to install scipy see below
PS C:\Users\yosief\Downloads> pip install .\scipy-0.16.1-win32-superpack-python3.4.exe
and I get an error-traceback
Invalid requirement: '.\scipy-0.16.1-win32-superpack-python3.4.exe'
It looks like a path. Does it exist?
My ENV variable is set so I can issue pip install from
C:\Users\yosief\Downloads>
even though my python path is:
C:\Users\yosief\AppData\Local\Programs\Python\Python36-32
Thanks
There might be nothing wrong with the file path. Your problem is with the package you are attempting to install.
This will fail because You are running Python 3.6 and you are attempting to install a Python 3.4 package.
You have three options to fix this problem:
1) Just try pip install and the package name you want. No need to download first it does it for you!
OR:
2) Get the correct file. From what I see you are running it should be a 32bit Windows 3.6 (or 36) version package. Everything must match
3) If you can't find your version but the package is Python 3 supported you can download the source and run python setup.py install and it should install.