Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developersguide:environment:virtualenv [2018/10/19 09:20]
Stefan [wxPython 4]
developersguide:environment:virtualenv [2020/01/30 14:33] (current)
Stefan [basemap]
Line 145: Line 145:
  
 ==== basemap ==== ==== basemap ====
-Basemap is not found in the pypi repository. You have to download the source tarball from sourceforge ​and use the tarball to install basemap. Alternatively you can specify the sourceforge ​URL directly in the pip command. ​+<WRAP center round important 80%> 
 +Basemap is deprecated and replaced by [[https://​scitools.org.uk/​cartopy/​docs/​latest/​ | cartopy]]. Up to now I have not finished the transition to cartopy and pyproj to replace basemap, so the basemap installation is still required. 
 +</​WRAP>​ 
 + 
 +Basemap is not found in the pypi repository. You have to download the source tarball from [[https://​github.com/​matplotlib/​basemap/​releases/​ | github]] ​and use the tarball to install basemap. Alternatively you can specify the github ​URL directly in the pip command. ​
  
 <WRAP center round tip 90%> <WRAP center round tip 90%>
Line 162: Line 166:
 For example to install the basemap-1.0.7 package use the following URL in the pip command: For example to install the basemap-1.0.7 package use the following URL in the pip command:
 <code bash> <code bash>
-(psysmonDev)user@computer ~ $ pip install ​http://sourceforge.net/​projects/​matplotlib/​files/matplotlib-toolkits/basemap-1.0.7/​basemap-1.0.7.tar.gz/download+(psysmonDev)user@computer ~ $ pip install ​https://github.com/​matplotlib/​basemap/archive/v1.2.1rel.tar.gz
 </​code>​ </​code>​
  
 +
 +==== pyproj ====
 +I'm working on replacing the coordinate tranformation using basemap with pyproj.
 +
 +<code bash>
 +(psysmonDev)user@computer ~ $ pip install pyproj
 +</​code>​
  
  
Line 212: Line 223:
 </​code>​ </​code>​
  
-==== mysql-python ​==== +==== pymysql ​==== 
-Use pip to install ​mysql-python:+Use pip to install ​pymysql:
 <code bash> <code bash>
-(psysmonDev)user@computer ~ $ pip install ​mysql-python+(psysmonDev)user@computer ~ $ pip install ​pymysql
 </​code>​ </​code>​
  
Line 232: Line 243:
  
 ==== pycairo ==== ==== pycairo ====
-Installing ​pycairo ​is a little bit tricky. The Waf installer was working with Linux Mint 13, but on Linux Mint 17.1 it stopped with an error:+For Python 3 installing ​pycairo ​works fine with pip. 
 + 
 +<​code>​ 
 +(psysmonDev)user@computer ~ $ pip install pycairo 
 +</​code>​ 
 + 
 +=== Deprecated installation hints === 
 +With previous Python and pycairo versions, the installation wasn't that easy. I'm keeping these notes in case similar problems occur again. 
 + 
 +The Waf installer was working with Linux Mint 13, but on Linux Mint 17.1 it stopped with an error:
  
 <​code>​ <​code>​
Line 259: Line 279:
  
 ==== wxPython 4 ==== ==== wxPython 4 ====
-The installation of wxPython 4 can be done using pip. No wheel was found for my distribution, ​so pip started ​the compilation of wxPython. The compilation succeeded without any problems. It's important to install all required development packages before creating the virtual environment,​ so that all links are set correctly.+The installation of wxPython 4 can be done using pip. wxpython provides Linux Wheels, but they are not found automatically by pip. The specific URL for each Linux distribution ​has to be specified using the ''​-f''​ flag. Follow the instructions on [[https://​wxpython.org/​pages/​downloads/​]] in section //Yes, we have Linux Wheels. Sort of.//. 
 + 
 +If no wheel package is found for the Linux distributions, pip starts ​the compilation of wxPython. The compilation succeeded without any problems ​on my system, but it's important to install all required development packages before creating the virtual environment,​ so that all links are set correctly.
  
 <code bash> <code bash>
-(psysmonDev)user@computer ~ $ pip install ​lxml+(psysmonDev)user@computer ~ $ pip install ​wxpython
 </​code>​ </​code>​