Giter Site home page Giter Site logo

portable-python's Introduction

Portable-Python

This shows how you can create a portable installation of Python from the official python.org website. The following script merely automates the steps you need to do to get a working embedded version up and running. Functionality is 100% the same as regular python.

Steps

Make sure you download the Windows embeddable package (64-bit) from:

https://www.python.org/downloads/windows/
  • Drop the Fix Python.ahk script (or Fix Python.exe) into the extracted zip directory.
  • Double check there is a python.exe in the folder.
  • Double click the Fix Python.ahk script.

If successful, the script will self delete.

image

Additional Useful Scripts

You might find it useful to add python to your bin folder or PATH:

@echo off
"%~dp0python\python.exe" %*

You can also suppress the pip warnings

@echo off
if /I "%1"=="install" ("%~dp0python\scripts\pip.exe" %* --no-warn-script-location) else ("%~dp0python\scripts\pip.exe" %*)

Both scripts assume your main folder is called "python" and are dropped in the same directory as the folder called python.

image

You can change the path by adding something between %~dp0 and python such as:

"%~dp0Documents\python\python.exe" %*

which translates to:

.\Documents\python\python.exe

portable-python's People

Contributors

iseahound avatar

Stargazers

poa00 avatar Momoca avatar Daniel Royo avatar  avatar Pablo Daniel Andreotti avatar  avatar  avatar Carlos Sánchez avatar Duong Minh Duy avatar geduardcatalindev avatar  avatar

Watchers

 avatar Herr Frei avatar Carlos Sánchez avatar  avatar

Forkers

poa00

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.