The road to installing Python and Flask on an offline PC

conditions

What to install

・ Python 2.7.13 ・ Packages related to flask that suits the environment

Installation target

・ Completely offline PC (Windows 10 / with administrator privileges)

What can be used

・ Online PC (Windows 7 / no administrator authority) ・ USB memory

procedure

1. Download the Python installer from the official website.

https://www.python.org/ This time I used 2.7 series.

2. Copy the downloaded msi to a USB memory and go to an offline PC

It's getting annoying

3. Install Python on your offline PC.

http://qiita.com/maisuto/items/404e5803372a44419d60 I saw this.

4. Copy the extracted data and DLL to a USB memory

If you install it normally, it will be in C: \ Python27. The DLL is python27.dll located in C: \ Windows \ System32.

Copy the data of 5.4 to the online PC

You can process it on a USB memory without copying it separately.

6. Download get-pip.py

https://bootstrap.pypa.io/get-pip.py Download this as it is and put it directly under Python27 in 5. Put python27.dll in the same place. ↑ If you do this, it will work even if you do not pass the path because it is the same location as python.exe. ↑ You don't have to install it, and it works without administrator privileges.

7. Create a download destination folder

It can be anywhere (I think) This time I made it in F: \ Python27 \ tmp

8. Download

cd /D F:/Python27
python.exe get-pip.py --download .tmp --no-binary :all: flask

If you can download it, it will be in the folder you created.

9. Transfer the downloaded data to an offline PC

Anywhere (ry

10. Install the downloaded package on your offline PC

pip install --no-deps E:Python27\tmp\click-6.7.tar.gz

Install all files like this. I tried wildcards but something didn't work so I did it manually.

11. Try the server

http://methane.github.io/flask-handson/start.html I did it from the middle of this. did it.

Recommended Posts

The road to installing Python and Flask on an offline PC
Python 3.6 on Windows ... and to Xamarin.
Disguise the grass on GitHub and try to become an engineer.
Installing Anaconda Python on an ECS instance
The road to compiling to Python 3 with Thrift
Put Cabocha 0.68 on Windows and try to analyze the dependency with Python
Work memo to migrate and update Python 2 series scripts on the cloud to 3 series
[Python] Create a linebot to write a name and age on an image
Notes on installing Python3 and using pip on Windows7
Install the python package in an offline environment
Introduction to Python with Atom (on the way)
[Note] Installing Python 3.6 + α on Windows and RHEL
An article summarizing the pitfalls addicted to python
The key to deploying Flask apps using Python Buildpack on Cloud Foundry (Diego)
To avoid seeing hell when installing django-toolbelt on windows, heroku and python3.4 (64bit) ...
A complete guidebook to using pyenv, pip and python in an offline environment
[Python] I made a script that automatically cuts and pastes files on a local PC to an external SSD.
Run the flask app on Cloud9 and Apache Httpd
Think about how to program Python on the iPad
The process of installing Atom and getting Python running
Steps to install the latest Python on your Mac
An easy way to pad the number with zeros depending on the number of digits [Python]
Installing pandas on python2.6
Try running a Schedule to start and stop an instance on AWS Lambda (Python)
From installing Flask on CentOS to making it a service with Nginx and uWSGI
Installing Python 3 on Mac and checking basic operation Part 1
The road to Pythonista
How to enjoy Python on Android !! Programming on the go !!
The road to Djangoist
Install django on python + anaconda and start the server
Pass an array from PHP to PYTHON and do numpy processing to get the result
Call the API of Hatena Blog from Python and save your blog articles individually on your PC
Use Python to monitor Windows and Mac and collect information on the apps you are working on
Return the image data with Flask of Python and draw it to the canvas element of HTML
I want to absorb the difference between the for statement on the Python + numpy matrix and the Julia for statement
[Sakura Rental Server] (For beginners) How to build an environment for Python, pyenv, and Flask. | For csh
An easy way to view the time taken in Python and a smarter way to improve it
Posted as an attachment to Slack on AWS Lambda (Python)
How to swap elements in an array in Python, and how to reverse an array.
[Hyperledger Iroha] Notes on how to use the Python SDK
Sample to put Python Flask web app on Azure App Service (Web App)
How to deploy the easiest python textbook pybot on Heroku
Install pyenv on MacBook Air and switch python to use
Build a Python environment and transfer data to the server
Code to send an email based on the Excel email list
Building an environment to execute python programs on AWS EC2
I want to know the features of Python and pip
I tried to enumerate the differences between java and python
Save images on the web to Drive with Python (Colab)
I tried changing the python script from 2.7.11 to 3.6.0 on windows10
Python on Ruby and angry Ruby on Python
Install Python and Flask (Windows 10)
A road to intermediate Python
The road to download Matplotlib
Update python on Mac to 3.7-> 3.8
Notes on installing Python on Mac
React and Flask to GCP
An introduction to Python Programming
Notes on installing Python on CentOS
"Cython" tutorial to make Python explosive: When a function on the C ++ side has an overload.
How to easily create an environment where python code runs on Jupyter without polluting the local environment