How to build and release python3.5 on windows

I started python3 today, installed python3.5 in the windows environment, learned how to build and publish according to "Introduction to Python", and created a new nester folder on the D drive, which includes a nester.py and setup.py two pythons file, according to the steps on the tree, there is an error from step 3, here you need to pay attention:

1. Go to the directory where the nester folder is located

Click Start -> enter cmd-> then enter cd /dd:\nester

2. Build and release

D:\nester>C:\Users\Administrator\AppData\Local\Programs\Python\Python36\python.e

car setup.py sdist

3. Build the release to your local python copy

D:\nester>sudo python3 setup.py install

'sudo' is not an internal or external command, nor is it a runnable program or batch file.

 

D:\nester>C:\Users\Administrator\AppData\Local\Programs\Python\Python36\sudo pyt

hon.exe setup.py install

'C:\Users\Administrator\AppData\Local\Programs\Python\Python36\sudo' is not internal or

External commands, nor are they runnable programs or batch files.

 

In the Windows environment we have to use the python command

D:\nester>C:\Users\Administrator\AppData\Local\Programs\Python\Python36\python.e

xe setup.py install

 

So far, we have successfully built and released, and when you want to use it, you can directly import nester!

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326904365&siteId=291194637