Can't find PyInstaller when installing through pip on Python 3 - python-3.x

I am trying to install PyInstaller.
I went to my command prompt and types in:
python -m pip install PyInstaller
After doing a few retry's it gives me the message

The impression that I get from your error message is that the issue is not specific to PyInstaller, but rather that there's a general issue connecting to the Python Package Index server.
I would advise to double check that your machine is able to connect to the pypi.python.org domain (e.g. do a simple ping test).

Thanks for your help Xukrao.
The ping did not work so as you suggested I spoke to our IT guy who knew right away that it was a proxy issue and needed to input something like below to get it working.
[user:passwd#]proxy.server:port

Related

ModuleNotFoundError: No module named '<module.name>' - Installation error

I am building a desktop app using Python and PySimpleGUI. So far, everything works just fine. Whilst I was working at the project, I realized I need to find a way to get the duration of some mp3 files and to display it in a certain way. I discovered mutagen module that is supposed to help me in this sense, I installed, and here the problem arise:
It throws me ModuleNotFoundError: No module named 'mutagen'.
Seeing this, I started to look for the problem, but I couldn't not understand why my interpretor did not find the module even though I Installed it CORRECTLY. (as PyCharm told me)
I have tried the following:
I am using a local virtual environment that has installed the dependecies for the project(and some extra) and I uninstalled and installed the package 3-4 times
I deleted the local virtual environment and I created another one. I installed the packages again and same issue.
I installed a random module (scipy) and I tried to import it somewhere in the project and it thrown me same error, but this time for scipy module
My guess is that I did not configured properly my interpreter, but to be honest, I have no idea what I am doing wrong, because I followed the same steps I've been using for creating a venv with its according interpreter and for other projects, it worked just fine.
Further details:
Using python3.9 base .exe
I installed the packages in two ways: one using the pycharm IDE, and one by running pip3 install mutagen
You may be using a different pip that is not the one that affects the Python you are using. Instead of using
pip install mutagen
Consider using pip as a module of the Python you are using:
python -m pip install mutagen
This way you'll be sure you are working on the same Python.
If you want to continue using plain pip, try which python and which pip to make sure they are referencing the same environment.

Problem with "import rarfile" in python on Ubuntu

Today I turned on my Ubuntu virtual machine and tried to do a project in Python 3.9.4,
but this one used rarfile module. Which is throwing errors.
I know rarfile uses unrar, and I installed both rarfile and unrar.
Tried to type unrar seperately and it works.
I almost spent whole day trying to figure this out.
My question is why does importing rarfile module not work, and how can I fix it.
I also read online it could have something to do with PATH, but I am pretty new to linux and don't know terminology of it and therefore don't know how to try to fix it.
Some information regarding that would probably help if not now, for the future problems regardless if it is connected to this problem or not.
Sorry if I formatted this post poorly, it's my 2nd post on here.
I would do pip install rarfile to make sure it is install
also you may want to do a pip list to make sure its intalled.
Also if python 2 is install then most likly you need to do pip3 install rarfile.

Install python3-tk on pythonanywere

I tried to run a script using turtle module on pythonanywere.com, however, got stuck at an error that cannot find the module named "tkinter" and I need to install python3-tk package. I followed this tutorial installing new modules on pythonanywhere in attempt to install the package in Bash console on pythonanywere.com by running pip3.5 install --user package3-tk.
However, I got the error that "could not find the version that satisfies the requirement package3-tk".
I also tried to replace the package name with tkinter with no luck either.
You can't use the tkinter module from a server such as pythonanywhere. It needs to have a connection to a display and not just a browser window.
https://www.pythonanywhere.com/forums/topic/360/
Just learnt the lesson of finding answer by asking question in different way. My purpose is to use turtle module on pythonanywere, which is not possible as explained in the answer above. However, I just found out that pythonanywhere has an affiliate website that is free and supports turtle (www.trinker.io)

I'm having issues installing pyscopg2 on Mac OSX

ok, so I have researched the other topics on this, but I still can't get this thing to work, and I'm sure its something small I'm overlooking.
I have my python script running on my local host as a web service.
I have my postgresql instance running on my local host with a specific port, and a database created with a table that has data.
All I want to do is utilize psycopg2 to connect to my database from the python script. Should be pretty simple.
Now, as I understand it, I should be able to just download the psycopg2 file, run the setup, and move on from there.
Could someone PLEASE point me in the direction of how to do this? The python setup.py build and/or install command results in permission denied, which is just odd. I ran it with sudo, and again, same thing.
This is the last piece I need to get in place before I can continue working on the application that I was working on.
Have you tried using pip?
pip search psycopg2
if not installed
pip install psycopg2

Install pybrain on python 3.2

I'm trying to install pybrain on python 3.2. It says here: https://github.com/pybrain/pybrain/pull/85 that it should work. However it does not for me.
I tried:
$export PYTHONPATH=$PYTHONPATH:'/home/luis/Documents/pybrain/'https://github.com/pybrain/pybrain/pull/85
which works well for python 2.7.
Did somebody get it to work?
After hours of "what the hell?!"s I installed it.
First the installer suggested is not updated for Python3 so I installed Distribute. With that installed I was able to use python setup.py install in the directory where I unrared pybrain. It gave a ton of errors. So I found this article (god bless google translate) and used 2to3 on pybrain directory. After I tried to install it again it gave an error on from string import split so I edited the file and removed that line (it is not needed really) and tried yet another time. This time no errors occurred and I was able to import pybrain without any problems. The same problem with the from string import split occurs in utilities.py again, so edit that line too.
I used 2to3 to turn examples to python3 too. benchmarkplots.py seems to work.
Update:
pybrain now supports python3
Here's how to install if you run into trouble
pip install https://github.com/pybrain/pybrain/archive/0.3.3.zip
Or just grab latest github pybrain release.

Resources