User Tools

Site Tools


python_install

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
python_install [2019/02/17 16:22] – [Installation and Requirements] g00r00python_install [2019/03/10 09:18] – [Troubleshooting] g00r00
Line 93: Line 93:
  
 The most common Windows issue is that the wrong version of Python is installed.  It is absolutely a requirement that you download the 32-bit version of Python if using 32-bit version of Mystic, and the 64-bit version of Python if using the 64-bit version of Mystic. The most common Windows issue is that the wrong version of Python is installed.  It is absolutely a requirement that you download the 32-bit version of Python if using 32-bit version of Mystic, and the 64-bit version of Python if using the 64-bit version of Mystic.
 +
 +If you get an error similar to "“Importerror: No module named site" when your script tries to import a module, this
 +means you need to set your Python environment variables.  See the section above for information and an example of
 +how to do this in Windows.
  
 === Unix === === Unix ===
Line 105: Line 109:
 for embedded applications, and also the unicode size may need to be either ucs2 or ucs4. for embedded applications, and also the unicode size may need to be either ucs2 or ucs4.
  
-The following steps can be used to reinstall Python 2.7 on Ubuntu 18.04 LTS:+The following steps can be used to reinstall Python 2.7 tested on a fresh Ubuntu 18.04 LTS:
  
 **INSTALL PREREQUISITES:** **INSTALL PREREQUISITES:**
Line 117: Line 121:
   * sudo tar xzf Python-2.7.15.tgz   * sudo tar xzf Python-2.7.15.tgz
   * cd /usr/src/Python-2.7.15   * cd /usr/src/Python-2.7.15
-  * sudo ./configure --enable-optimizations --enable-unicode=ucs4 --enable-shared+  * sudo ./configure -enable-optimizations -enable-unicode=ucs4 -enable-shared
   * sudo make install   * sudo make install
  
python_install.txt · Last modified: 2023/01/08 12:24 by g00r00

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki