Question: |
Request version Python python 2.6.6 --versionОтвет ask version of Pip is also for version 2.6 Question how do I install packages for version 3.3 So if I do as in the documentation of the package jumps as I understood in version 2.6 Waiting for an answer |
Answer: |
Hello please describe fully what You do and what errors you see. all commands and their result please give |
Answer: |
give a list of commands and errors. |
Answer: |
use pip3.3 pip3.3 --version 8.1.2 pip from /usr/local/lib/python3.3/site-packages (python 3.3) |
Question: |
Write pip3 or pip3.3? |
Answer: |
Owned pip3.3 |
Question: |
It is!But there is another problem run the script. get error 500A in the logs this is what[Tue Oct 25 08:13:55 2016] [error] [client 85.64.127.131] /usr/bin/env: [Tue Oct 25 08:13:55 2016] [error] [client 85.64.127.131] /usr/local/bin/python3.3\\r: No such file or directory[Tue Oct 25 08:13:55 2016] [error] [client 85.64.127.131] Premature end of script headers: index.py[Tue Oct 25 08:13:55 2016] [error] [client 85.64.127.131] File does not exist: /home/areostar/web/placetest.ru/public_html/favicon.ico, referer: http://www.placetest.ru/index.pyКак to understand this! |
Answer: |
compare your script with the test http://newangar.ru/index.py you mentioned in Solovki script? #!/usr/bin/env /usr/local/bin/python3.3
So you can use different versions: /usr/bin/python - 2.6 /usr/local/bin/python3.3 - 3.3 /usr/local/bin/python3 - 3.5 |
Question: |
#!/usr/bin/env /usr/local/bin/python3.3import sysimport numpy#import pymysql#import pymysql.cursorprint (\"Content-type:text/html\")print()print (\"\")print (``)print (`Hello Word - First CGI Program`)print (``)print (``)print (`Hello Word! This is my first CGI program`)print (``)print (``)print()print (sys.version)the Title I did not change! |
Answer: |
what did you change? |
Question: |
Hmm.. http://www.newangar.ru/index.pyТакойже the script works!videmo in the file, something crept |
Answer: |
check the files have BOM before downloading. |
Question: |
phew it works! you can close |
Answer: |
ok |