how to do pip install manually - python-3.x

i'm trying to run this code
pip install pandas
from my company laptop, but i think to have a firewall block.
getting this error:
Could not find a version that satisfies the requirement pandas (from versions: ) No matching distribution found for pandas
I can't modify the firewall settings (in order to fix my problem) and i'm guessing if there is alternative way to download & install all libraries into python3.
Could i dowload the library and then paste it into a folder?
PS. i'm using pycharm
Thank you

Download appropriate file matching your Python version and architecture from https://pypi.org and then install it locally with pip, i.e.:
$ pip install --user pandas-0.25.1-cp36-cp36m-manylinux1_x86_64.whl
Processing ./pandas-0.25.1-cp36-cp36m-manylinux1_x86_64.whl
...
Note that the package might require further dependencies, so you might need to repeat for different packages.

If your machine requires a proxy, add this bit after install:
--proxy=http://sub_domain_proxy.sub_domain.domain:port

Related

pip : how can I change the environment?

I am attempting to solve an issue I am having with pip
The context is as follows : I receive a docker image from a service in my company but I do not have the possibility to change it at all ( it comes as it is and that's it )
The image comes with a few packages already installed but are causing a conflict with the requirement.txt file I would like to use. I can obviously check the environment of the docker image and manually check for all of the pakages one by one but it not very efficient
Is there a way that I can install my requirement.txt in a way were it would take precedence over what is already installed ?
As an exemple, if I have ABC==1.4.21 already installed but I would like to have ABC==2.3 would it be possible to get pip to install the version in the requirement.txt ( the opposite is also possible ) ?
I already did attempt to unistall the previously installed packages with pip freeze | xargs pip uninstall -y but I am having issues with some of the packages such as conda : ERROR: Cannot uninstall 'conda'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Any help is much appreciated

How to install libdoc2testbench on Ubuntu

libdoc2testbench is a tool of Robot Framework which supports importing test results to imbus testbench. Due to Robot Framework documentation, it is to be installed by
pip install robotframework-libdoc2testbench
I want to install it on Ubuntu 18.04; there I get the error:
Could not find a version that satisfies the requirement robotframework-libdoc2testbench (from versions: )
No matching distribution found for robotframework-libdoc2testbench
Best regards
Gerhard
You are probably calling pip from Python 2.7.
Make sure you use Python 3, for example with:
python3 -m pip install robotframework-libdoc2testbench
EDIT: You can download the .wheel or source tar from pypi.org and install with pip pointing to it (and then if needed, download other required packages).
However the solution to your problem is the Python version. From the project page, we see it needs Python 3.7.

How to fix EnvironmentError when installing modules using pip?

When trying to install requests or literally anything using pip it'll collect the option and then give me this ERROR every time. I can't use pip to install anything.
C:\Users\evand>pip3 install requests
Collecting requests
ERROR: Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path: path/to/ca-bundle.crt
Version of pip:
C:\Users\evand>pip --version
pip 19.2.3 from c:\users\evand\appdata\local\programs\python\python38-32\lib\site-packages\pip (python 3.8)
Version of Python:
C:\Users\evand>py --version
Python 3.8.3
Current Environment Variables (If this is related at all)
I have also tried the 'Repair' option using the Python Installer as well as uninstalling then reinstalling as a custom installation with 'Add to PATH' and the other options. That didn't fix the issue, so I deleted pip along with every module installed on my computer then reinstalled pip. Nada. At this point, I can no longer program with this computer because I cannot import any module in any of my scripts. I am not sure why this issue suddenly arose. Help would be very much appreciated.
This worked for me:
Uninstalling the pip configuration file in %appdata%/pip/ then 'modifying' python using the python launcher.

trying to install xlrd in specific directory

I'm trying to pip install install xlrd to my local directory. First, I opened the anaconda prompt and tried this
pip install xlrd
No problems there. Then I try this
pip install xlrd -t <my windows path>
But it spits out an error:
Could not find a version that satisfies the requirement Code (from versions: )
No matching distribution found for Code
What's the issue here and how do I resolve this?
Ok this may seem like a stupid answer but it might help some people. My windows path had folder names with spaces. I removed them and it works.

How can I install Image class in Python 3 Ubuntu 14.04?

I am trying to use the PIL in Python 3, but there is no way I can make it work. I tried several links, but none of them really helped.
I am using Ubuntu 14.04 and installed IDLE.
Can anyone here, please help me?
Thanks in advance,
sudo apt-get install python3-pil python3-pil.imagetk
You may need to manually remove any left-overs of non-successful installs tried with pip or compiling with setup.py - this will be indicated by conflicting files listed in the error message.
The rule of thumb is: If you want a Python general tool for interactive use, or that provides scripts you will use directly, libraries for small scripts for personal use: you have to install the package built for your system (the .deb) with apt-get, aptitude whatever - unless that Python module is not packaged at all.
For all other uses, you should create a Python virtualenv and install the desired modules inside that virtualenv with pip install <name>. Including the cases Ubuntu does not have the desired Python module packaged.
Regarding PIL there is still another interesting bit: the original PIL had become unmaintained and bit-rot over the years. One of the most proeminent bugs arising from that is exactly it inability to be cleanly installed using pip or easy_install. Another one is that it never was (at least properly) ported to work with Python3. Due to that a fork named "Pillow" was created. It is a drop-in replacement for the orinal PIL - PIP and Easy_install should install "Pillow" and not "PIL".
(NB. I do not know which PIL or Pillow - is packaged by Ubuntu under the "python-pil" names. I suppose and hope it is the actively maintained project Pillow)

Resources