05-14-2019
Yes I am well aware of the differences between py2 and py3 lol I have had to convert a handful of python scripts from 2 to 3 in the past. As far as I know neither the Linux OS or the DOS OS has any dependencies on Python. No I just need to temporarily move from py3 to py2 so that I can compile an older program and I would like to do it with update-alternatives so that I can easily change back after I compile the program.
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b:
I stopped at .. :(
#!/bin/sh
A=`hostname -i`
echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies
2. Shell Programming and Scripting
SSHing into a machine can take a few seconds, but after I'm in, the commands return quickly. I was wondering if the timeout setting can be changed once I'm logged into the machine. Does anyone know if this can be set on the fly? The problem here is, if I have to set timeout = 10, it'll take 10... (1 Reply)
Discussion started by: mrwatkin
1 Replies
3. UNIX and Linux Applications
Hi everyone,
So far, I have done all the steps (including creating django.wsgi in the project). The step left is to turn on the httpd, but error put exit in this very last step. :(
<user> #: ./apachetrl start
httpd: Syntax error on line 450 of /usr/local/apache2/conf/httpd.conf:
Cannot... (1 Reply)
Discussion started by: AlexCheung
1 Replies
4. Web Development
Hi everyone,
So far, I have done all the steps (including creating django.wsgi in the project). The step left is to turn on the httpd, but error put exit in this very last step.:(
<user> #: ./apachetrl start
httpd: Syntax error on line 450 of /usr/local/apache2/conf/httpd.conf:
Cannot load... (1 Reply)
Discussion started by: AlexCheung
1 Replies
5. Shell Programming and Scripting
Hi All
i have a script written in python2.3 but it no longer works for python2.6 is there an easier way to check what needs to be changed (1 Reply)
Discussion started by: ab52
1 Replies
6. Solaris
Hi,
I have a Solaris (SunOS 5.10) installed, by default with the en_AU.UTF-8 locale. I want to change it to en_US.UTF-8
With AU, I have no issues whatsoever, so I installed the language package and now locale -a shows "en_US.UTF-8".
Problem is even with LC_ALL set in etc/default/init, the... (2 Replies)
Discussion started by: asdfg
2 Replies
7. Shell Programming and Scripting
Hi,
I am looking for a shell script which serves the below purpose.
Please find below the algorithm for the same and any help on this would be highly appreciated.
1)set of strings need to be replaced among set of files(directory may contain different types of files)
2)It should search for... (10 Replies)
Discussion started by: Amulya
10 Replies
LEARN ABOUT DEBIAN
py3compile
PY3COMPILE(1) User Commands PY3COMPILE(1)
NAME
py3compile - byte compile Python 3 source files
SYNOPSIS
py3compile [-V [X.Y][-][A.B]] DIR_OR_FILE [-X REGEXPR]
py3compile -p PACKAGE
DESCRIPTION
Wrapper around py_compile to byte-compile python files.
OPTIONS
--version
Show program's version number and exit.
-h, --help
Show this help message and exit.
-f, --force
Force rebuild of byte-code files even if timestamps are up-to-date.
-O Byte-compile to .pyo files.
-q, --quiet
Be quiet.
-v, --verbose
Turn verbose mode on
-p PACKAGE, --package=PACKAGE
Specify Debian package name whose files should be bytecompiled.
-V VRANGE
Force private modules to be bytecompiled with Python version from given range, regardless of the default Python version in the sys-
tem. If there are no other options, bytecompile all public modules for installed Python versions that match given range. VER-
SION_RANGE examples: '3.1' (version 3.1 only), '3.1-' (version 3.1 or newer), '3.1-3.3' (version 3.1 or 3.2), '-4.0' (all supported
3.X versions).
-X REGEXPR, --exclude=REGEXPR
exclude items that match given REGEXPR. You may use this option multiple times to build up a list of things to exclude.
py3compile 0.9 September 2010 PY3COMPILE(1)