Python Ethereum virtual machine under Windows
Publish: 2021-05-21 00:50:39
1. My computer - & gt; Attribute - & gt; Advanced - & gt; Environment variables - & gt; Add the following environment variables to the system variables:
java_ The home value is: the directory where JDK is installed, and mine is C: 92; Program Files\ Java\ jdk1.6.0_ 34
the classpath value is:;% JAVA_ HOME%\ lib\ tools.jar;% JAVA_ HOME%\ lib\ dt.jar;% JAVA_ HOME%\ bin;( Pay attention to the & quot& quot; To add)
Path: append at the beginning.;% JAVA_ HOME%\ bin;% JAVA_ HOME%\ jre\ bin;( Pay attention to the & quot& quot; To add)
after the installation, you can check whether the JDK is installed successfully. Open the CMD window and enter Java – version to view the version information of JDK.
java_ The home value is: the directory where JDK is installed, and mine is C: 92; Program Files\ Java\ jdk1.6.0_ 34
the classpath value is:;% JAVA_ HOME%\ lib\ tools.jar;% JAVA_ HOME%\ lib\ dt.jar;% JAVA_ HOME%\ bin;( Pay attention to the & quot& quot; To add)
Path: append at the beginning.;% JAVA_ HOME%\ bin;% JAVA_ HOME%\ jre\ bin;( Pay attention to the & quot& quot; To add)
after the installation, you can check whether the JDK is installed successfully. Open the CMD window and enter Java – version to view the version information of JDK.
2. 1. ASP vs jsp:
ASP runs on the. Net platform under windows, and JSP runs on the Java platform (which can be windows, Linux, MAC, etc.), both of which can only be used as the presentation layer of Web Development (that is, only used to write web pages). The comparison of the two platforms can be seen as the comparison of the two platforms (. Net and Java):. Net platform supports almost all languages (you can write programs in VB, VC, C #, etc.)
2. Python, ruby and Perl are dynamic languages. Compared with the traditional languages (C, C + +, Java, C #), the biggest difference is that the compiler does not require type matching, so you can match by yourself, so the program can be written very flexibly, without defining variables step by step, you can use them directly. Traditional language hundreds of lines of program, dynamic language may be dozens of lines is enough, so it is suitable for rapid development. In addition, the program can run under various operating systems
3. Perl vs Ruby and python:
Perl is older than ruby or python. Perl used to be the most popular scripting language, and it was also considered necessary for hackers. It can process complex data in only a few lines, and the speed is not much slower than C. the built-in support for regular expressions and data structures is even more amazing. Many websites used to be written in Perl. Even now, some of the older websites abroad still have Perl code. Perl's strongest point is that it has countless libraries. Perl has the largest community in the world. You can find the corresponding libraries for everything you want to do
but the disadvantages of Perl are also obvious: Perl's program is too flexible. There are many solutions to a problem, just as there are many statements in a sentence (who makes the inventor of Perl a linguist at the same time? The most humanized language is also the most flexible), Moreover, the grammar of Perl is completely hard to read for those who are not familiar with it.
both Ruby and python appear as the substitutes of Perl. The latest Perl adds object-oriented support (but I don't think it's as pure as C + +), and ruby and Python have better object-oriented support (even better than Java)
4. Ruby vs Python:
there is no doubt that this is the most popular language among Java programmers at present. Many people claim that Java is too rigid and traditional languages are too rigid. The mainstream of the future is dynamic language. And the future is ruby or python. For web developers, rapid development is very attractive
apart from the differences in grammar, the two are equally important. Since ruby was invented by the Japanese, and most of the documents used to be written in Japanese, python was stronger a few years ago, and was even regarded by Google as one of the four programming languages that can only be used in the company. But now there are many English materials about ruby, and the recently launched Ruby on rails makes web development very fast (especially for Java Web Development), making Ruby the most popular in the past two years. But objectively speaking, there is almost no big difference between them. Ruby has purer object-oriented support, and python has richer class libraries (because Python has a longer history)
about ide:
ASP: windows has never lacked a good ide (on the contrary, you can't write any windows program without IDE), Of course, vs stuudio
jsp: MyEclipse or idea is good, but it is a little worse than windows tools
Ruby and python: open source languages, ides are not the best, just simple syntax highlighting, debugging and running, as well as error prompts and help. But there are many choices, and they are not big, and they are getting better all the time. So pay more attention to the new version. Ruby can use the ruby plug-in of NetBeans or eclipse, and python can use the pydev plug-in of eclipse
Perl ide can use eclipse epic plug-in, basic syntax highlighting, dynamic code completion, automatic compilation, automatic error prompt, etc
of course, if you only write small programs (less than 10 files, for example), you can use ordinary editors with syntax highlighting (such as VIM, Emacs, and IDE under Linux platform)
ASP runs on the. Net platform under windows, and JSP runs on the Java platform (which can be windows, Linux, MAC, etc.), both of which can only be used as the presentation layer of Web Development (that is, only used to write web pages). The comparison of the two platforms can be seen as the comparison of the two platforms (. Net and Java):. Net platform supports almost all languages (you can write programs in VB, VC, C #, etc.)
2. Python, ruby and Perl are dynamic languages. Compared with the traditional languages (C, C + +, Java, C #), the biggest difference is that the compiler does not require type matching, so you can match by yourself, so the program can be written very flexibly, without defining variables step by step, you can use them directly. Traditional language hundreds of lines of program, dynamic language may be dozens of lines is enough, so it is suitable for rapid development. In addition, the program can run under various operating systems
3. Perl vs Ruby and python:
Perl is older than ruby or python. Perl used to be the most popular scripting language, and it was also considered necessary for hackers. It can process complex data in only a few lines, and the speed is not much slower than C. the built-in support for regular expressions and data structures is even more amazing. Many websites used to be written in Perl. Even now, some of the older websites abroad still have Perl code. Perl's strongest point is that it has countless libraries. Perl has the largest community in the world. You can find the corresponding libraries for everything you want to do
but the disadvantages of Perl are also obvious: Perl's program is too flexible. There are many solutions to a problem, just as there are many statements in a sentence (who makes the inventor of Perl a linguist at the same time? The most humanized language is also the most flexible), Moreover, the grammar of Perl is completely hard to read for those who are not familiar with it.
both Ruby and python appear as the substitutes of Perl. The latest Perl adds object-oriented support (but I don't think it's as pure as C + +), and ruby and Python have better object-oriented support (even better than Java)
4. Ruby vs Python:
there is no doubt that this is the most popular language among Java programmers at present. Many people claim that Java is too rigid and traditional languages are too rigid. The mainstream of the future is dynamic language. And the future is ruby or python. For web developers, rapid development is very attractive
apart from the differences in grammar, the two are equally important. Since ruby was invented by the Japanese, and most of the documents used to be written in Japanese, python was stronger a few years ago, and was even regarded by Google as one of the four programming languages that can only be used in the company. But now there are many English materials about ruby, and the recently launched Ruby on rails makes web development very fast (especially for Java Web Development), making Ruby the most popular in the past two years. But objectively speaking, there is almost no big difference between them. Ruby has purer object-oriented support, and python has richer class libraries (because Python has a longer history)
about ide:
ASP: windows has never lacked a good ide (on the contrary, you can't write any windows program without IDE), Of course, vs stuudio
jsp: MyEclipse or idea is good, but it is a little worse than windows tools
Ruby and python: open source languages, ides are not the best, just simple syntax highlighting, debugging and running, as well as error prompts and help. But there are many choices, and they are not big, and they are getting better all the time. So pay more attention to the new version. Ruby can use the ruby plug-in of NetBeans or eclipse, and python can use the pydev plug-in of eclipse
Perl ide can use eclipse epic plug-in, basic syntax highlighting, dynamic code completion, automatic compilation, automatic error prompt, etc
of course, if you only write small programs (less than 10 files, for example), you can use ordinary editors with syntax highlighting (such as VIM, Emacs, and IDE under Linux platform)
3.
1. Search for Python download on the Internet. See the following screenshot. The first one is the official website of Python. Go to find the installation program of Python for windows. It is recommended that you go directly to the second one (Network Software Center) to download
2. After installation, you can run Python programs
3. If you need advanced commands, you can enter the computer properties advanced system properties advanced environment variable to add the python environment to the system path variable, such as "C:: python27" (this is the installation directory where Python was just installed)
4. Open the command line (CMD) and enter python. If the following figure appears, the installation is successful
If an error is displayed, please add the python running directory to the computer & gt; Properties & gt; Advanced system settings & gt; Environment Variables & gt; In path
Download PIP from the official website: after downloading, unzip it to a folder, enter the unzip directory with the CMD console, and enter: after installation, add the directory to the path variable & gt; This is the default installation path)
Input: PIP directly in the CMD, and it will be displayed as shown in the figure below
now that pip is successfully installed, we start to install virtualenv, and input it directly in the CMD. Since I have already installed it, an error will be displayed.
If an error is displayed, please add the python running directory to the computer & gt; Properties & gt; Advanced system settings & gt; Environment Variables & gt; In path
Download PIP from the official website: after downloading, unzip it to a folder, enter the unzip directory with the CMD console, and enter: after installation, add the directory to the path variable & gt; This is the default installation path)
Input: PIP directly in the CMD, and it will be displayed as shown in the figure below
now that pip is successfully installed, we start to install virtualenv, and input it directly in the CMD. Since I have already installed it, an error will be displayed.
5. Python is a cross platform scripting language. It can run on windows
6. 1. To run Python script in Windows system, you need to install Windows version of Python. You can download the version corresponding to the operating system from the official website. Download address of official website of Python Windows version: HTTPS: / / / downloads / windows/
7. Python is very friendly to windows. Don't scare new people. Go to download and install an ActivePython, which can be used as an auxiliary tool for VC / C programmers. Then install a ulipad as a development tool, and you can use Python happily on windows
it does not deny the value of Python in the * Nix environment, but Python and windows are also very good partners. Only when you need to learn about * Nix, you need to know how to use Python in * Nix
after you have a preliminary understanding of Python's built-in interactive environment, you can install an IPython to use as a daily Python interactive environment. This shell is more friendly, and with your in-depth understanding of python, you will find that IPython has many advanced functions that can improve your proctivity
if you can use Emacs, the python plug-in of Emacs is very convenient to use. You can try to integrate IPython to form a good integrated development environment.
it does not deny the value of Python in the * Nix environment, but Python and windows are also very good partners. Only when you need to learn about * Nix, you need to know how to use Python in * Nix
after you have a preliminary understanding of Python's built-in interactive environment, you can install an IPython to use as a daily Python interactive environment. This shell is more friendly, and with your in-depth understanding of python, you will find that IPython has many advanced functions that can improve your proctivity
if you can use Emacs, the python plug-in of Emacs is very convenient to use. You can try to integrate IPython to form a good integrated development environment.
8. And then there's the second second second third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third.quot; HTTP/1.0"< br />if sys.argv[1:]:
port = int(sys.argv[1])
else:
port = 8000
server address = (35; 39; 127.0.0.1&35;39;, port)
Handler.protocol version = Protocol
httpd = Server(server address, Handler)
print(" HTTP")< br />httpd.serve
port = int(sys.argv[1])
else:
port = 8000
server address = (35; 39; 127.0.0.1&35;39;, port)
Handler.protocol version = Protocol
httpd = Server(server address, Handler)
print(" HTTP")< br />httpd.serve
9. Start menu -- & gt; Run -- & gt; Enter CMD to open the command line
Enter Python - V to display your version of Python. If it is displayed, you can use it. If you have written a script script. Py
Run Python script. Py from the command line in that folder
if you enter Python - V and the prompt says that it cannot be found or there is an error, you need to add an environment variable. Right click on my computer -- & gt; Advanced -- & gt; Environment variables -- & gt; Path, add a semicolon in that column, and then the installation path of your python. If you press C: &; Python27, add this path, and then install the above command line.
Enter Python - V to display your version of Python. If it is displayed, you can use it. If you have written a script script. Py
Run Python script. Py from the command line in that folder
if you enter Python - V and the prompt says that it cannot be found or there is an error, you need to add an environment variable. Right click on my computer -- & gt; Advanced -- & gt; Environment variables -- & gt; Path, add a semicolon in that column, and then the installation path of your python. If you press C: &; Python27, add this path, and then install the above command line.
Hot content