Pyside Brew install error - python-3.x

I'm on osx 10.11.6, and I can't install pyside. I've tried:
brew install pyside --with-python3(the formula has been migrated to the boneyard)
pip install PySide(error configuring shiboken)
pip3 install PySide(error configuring shiboken)
What else can I try?
thanks.

Related

How to install crossroad of MSYS2?

I have been trying to install crossroad on MSYS2 through pip by typing pip install crossroad but couldn't install. Please help to install crossroad on MSYS2.
Just tried it on my PC and indeed it didn't download the crossroad
If you look at the logs you see that it requires python3-docutils or python2-docutils which is a system package and not python package.
So i used debian/ubuntu so running
apt install python3-docutils
And then running pip install crossroad did install crossroad package.

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

How to install pymssql module in Python 3.6?

I have been through a couple of documentations involving FreeTDS, Wheel, git and github but nothing was working on my Windows 10 PC with Python 3.6 but I need to install it. I'm working on a project and I'm most comfortable with mssql which is already installed in my pc.
this seems to work from
export PYMSSQL_BUILD_WITH_BUNDLED_FREETDS=1
pip install pymssql
Remember to install FreeTDS first.
Ubuntu/Debian:
sudo apt-get install freetds-dev
Mac OS X with Homebrew:
brew install freetds
Finally:
pip install pymssql
As the site pymssql_documentation page states that the module is deprecated,
we can use pip install "pymssql<3.0". It works on python 3.0 and above.
I think they should change it in the main copy area as well. as of 12/17/2019 it is still showing pip install pymssql, which has been updated on Nov 16 2019.
Just use the newest build of pymssql from gitub:
pip3 install git+https://github.com/pymssql/pymssql
Also works for python2
pip install git+https://github.com/pymssql/pymssql
UPDATE:
For macOS Big Sur Apple M1 chip processor:
You will need to install Rosetta2 emulator for the new ARM silicon (M1 chip). I just installed Rosetta2 via terminal using:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
Homebrew for ARM M1 chip:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Homebrew for M1 ARM command to install packages: arch -x86_64 brew install <package>. It is necessary to install FreeTDS before installing the pymssql.
arch -x86_64 brew install freetds
Finally:
pip install pymssql
output:
Collecting pymssql
Using cached pymssql-2.1.5.tar.gz (167 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Building wheels for collected packages: pymssql
Building wheel for pymssql (PEP 517) ... done
Created wheel for pymssql: filename=pymssql-2.1.5-cp39-cp39-macosx_10_9_x86_64.whl size=287029
.
.
.
Successfully built pymssql
Installing collected packages: pymssql
Successfully installed pymssql-2.1.5

Issue installing shapely Python Package

I am running python 3.6 on windows and am attempting to install Shapely using
pip install shapely==1.6b2
It is giving me the following errors
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Cameron\AppData\Local\Temp\pip-build-242ae_ih\shapely\
I have seen the other posts about this issue and have tried:
pip install --upgrade setuptools
pip install ez_setup
easy_install -U setuptools
Nothing seems to work and I am not sure what to do next. Any advice would be appreciated.
Thanks
You may try to use the binary from this unofficial site. Just use pip install {wheel file name} to install it.
Shapely‑1.5.17‑cp36‑cp36m‑win32.whl (32-bit)
Shapely‑1.5.17‑cp36‑cp36m‑win_amd64.whl (64-bit)
Hope this would make the installation easier.
I had a similar error for installing shapely-1.5.17 via pip install shapely, and installing this made the pip install command work thereafter:
sudo apt-get install libgeos-dev
As of 2020, you can now simply install Shapely for Windows with:
pip install shapely
(you many need --upgrade to get at least version 1.7.0, when binary wheels were added for Windows)

Resources