User:Ladsgroup/python 3 help
Appearance
Hey, If you have problem using python 3 in labs, this is the right place.
Running python 3 directly
This one is simple:
python3 pwb.py login
Building a virtual environment
You need to add "-p python3" otherwise it doesn't work
virtualenv -p python3 py3
Then you can use pip directly (pip3 doesn't work). For example:
source ~/py3/bin/activate
pip install pywikibot
will install pywikibot in python 3 environment.
Running scripts in grid engine
In order to run scripts in grid engine you can't use python 3 in current release (yet) you need to use trusty release. For example
jsub -once -N cool_script -l release=trusty python3 /data/project/yourtool/pywikibot/pwb.py login
without "-l release=trusty" it won't work.