how to fix error during installation of PyUpdater - python-3.x

This is the error caused by trying to install PyUpdater.with the pip install --upgrade PyUpdater command on Windows 10

For Python 3.x use:
sudo apt-get install python3-dev

Related

Unable to install pyinstaller in Ubuntu 16 with Python3.5

I have ubuntu16 which comes with python3.5 pre installed. I have installed pyinstaller using:
sudo pip3 install pyinstaller
It ran fine and installed pyinstaller. After that I ran, pyinstaller it says command not found.
I also tried installing it like:
sudo python3 -m pip install pyinstaller
It ran fine and said requirement already satisfied. But was unable to run pyinstaller.
I then upgraded the pip using sudo python3 -m pip install --upgrade pip and then reinstalled pyinstaller but this time used --user flag:
sudo python3 -m pip install pyinstaller --user
After this command it installed pyinstaller along with some other packages too.
Now if I run pyinstaller on terminal, I get this error:
Traceback (most recent call last):
File "/home/andrew/.local/bin/pyinstaller", line 5, in <module>
from PyInstaller.__main__ import run
ImportError: No module named 'PyInstaller'
Running the command sudo python3 -m pip list to get all the installed packages, I can see pyinstaller in the list:
pycurl 7.43.0
pygobject 3.20.0
pyinstaller 4.0
pyinstaller-hooks-contrib 2020.9
PyJWT 1.3.0
I am really confused as to what I should do in order to successfully install and run pyinstaller. Can anyone please help and suggest some good working solutions. Thanks
Okay I think I have finally managed to run pyinstaller on ubuntu16.
I am not sure if its the issue with Ubuntu16 or python3.5, but we need to upgrade the python version. So I first installed python3.6 using below commands:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6
After the installation, I made sure that running python3 is invoking the python3.6 and not python3.5:
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
sudo update-alternatives --config python3
After this if you type in python3, it should launch python3.6.
Once this is all done, just upgrade pip :
sudo python3 -m pip install --upgrade pip
after that you can install pyinstaller:
sudo pip3 install pyinstaller
also run this command:
sudo apt-get install python3.6-dev
otherwise you will get python lib not found error in pyinstaller build
and it will install and work fine.
I think pyinstaller is not working with python3.5 as this python version is also deprecated. So we need to upgrade the python version. So if any one is on ubuntu16 which has python3.5 as default, just upgrade your python version.

M2Crypto python3 installation error on Ubuntu 19.04

I am not knowing how to download and install M2Crypto on Ubuntu 19.04 for Python3.
I have Python 3.7.3 installed on my Ubuntu 19.04, I tried the following in order:
1- sudo apt-get install swig (worked fine)
2- brew install openssl (worked fine)
3- pip3 install m2crypto (gave the following error [shown in image])
Please help me fix it, how can I install M2Crypto on Ubuntu for Python3?
Thank you in advance.
https://imgur.com/q8gJ8wH
My Ubuntu-18.04 does not have python3-m2crytpo, which is a shame. It only has python-m2crypto which does not work for python3 (sorry mcepl). I suppose Ubuntu 19.04 has the same issue.
For me this works fine to get the package installed:
apt-get install build-essential libssl-dev swig python3-dev
pip3 install M2Crypto
(I had a peek at pip3 download M2Crypto; tar xvf M2Crypto*tar*; less M2Crypto*/INSTALL.rst to get these dependencies straight.)
you don't have installed openssl-dev package (you don't have to use brew, it is in apt-get)
why not apt-get install python-m2crypto ?

Install Shapely in Python 3

I cant install the shapely module in my anaconda prompt.
pip install --upgrade setuptools
pip install shapely
Command "python setup.py egg_info" failed with error code 1 in C:\Users\renau\AppData\Local\Temp\pip-install-27xf59zz\shapely\
Any solutions?
If you are using Anaconda, then it would probably be best to use:
conda install shapely
i guess you are using Windows ?
if so, you can't install shapely directly via pip
here's the steps:
go to this site and download desired version of shapely
run this script
pip install Shapely‑1.6.4.post1‑cp36‑cp36m‑win_amd64.whl
here i'm going to install Shapely version 1.6.4 for python 3.6 running in Windows 64bit
sudo apt-get install python-shapely
on Python 3
sudo apt-get install python3-shapely

twisted for python 3.5 on ubuntu

I tried installing django channels on my virtual environment. But it has failed. And it gives the following error 'failed building wheel for twisted'.
What is this about.? And how can i handle this issue?
I have python 3.5 on my virtualenv, and my OS in Ubuntu.
In order to install django-channel, do these thee step:
sudo apt-get install python3-dev python-pip libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev
pip install --verbose twisted
pip install -U Channels

How to install pythonwifi library?

I tried so many times to install pythonwifi library for python 2.7, with :
sudo pip install pythonwifi
and
sudo easy_install pythonwifi
But i received a error msg
You have done a small mistake here about the package name.
try:
sudo pip install python-wifi
it should work.

Resources