Skip to content

MatrixGamesHub/PythonVirtualEnv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PythonVirtualEnv

The python virtual environments for the development of matrix games.

Installation

  1. Create the following directory:

    C:\PythonVirtualEnv\MatrixGames

    If it already exists, make sure it is empty.

    Attention: You must clone the repository to C:\PythonVirtualEnv\MatrixGames, because the path is hard coded in all binaries (e.g. pip.exe).

  2. Change to the directory and clone the repository

    • Via HTTPS: git clone https://github.com/MatrixGamesHub/PythonVirtualEnv.git .

    or

    Attention: The point at the end is important and ensures that GIT clones into the current directory!

  3. You also need a Python 3.4 installation. It is recommended to install it to C:\Python34. If You choose another directory, then you have to change the home variable in C:\PythonVirtualEnv\MatrixGames\pyvenv.cfg

Usage

The virtual environment contains the binary of the python interpreter, which you must use, if you want to run scripts from the Matrix Games project.

  • If you are using Eclipse, create a new interpreter (Window -> Preferences -> PyDev -> Interpreters -> Python Interpreters) that points to the binary C:\PythonVirtualEnv\MatrixGames\Scripts\python.exe

  • If you are developing in a console, you can activate the virtual environment by running the C:\PythonVirtualEnv\MatrixGames\Scripts\activate.bat. This will adjust the path environment variable so you can run a script as usual with python script.py

  • If you do not want the activation, you can simply run a script by using the full path to the interpreter: C:\PythonVirtualEnv\MatrixGames\Scripts\python script.py

About

Python virtual environment for the development of Matrix Games

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published