The python3 tag has no usage guidance.
0
votes
0answers
7 views
How to install custom Python version on OpenSUSE
Inexperienced linux user, trying OpenSUSE:
I can see that python3.4 is the default on this distro (Leaf:42)
I have searched around on how to install a newer version, but I can't seem to find a guide ...
0
votes
2answers
34 views
Monitor process and restart when not running using crontab
I have a Python / JS server combo that I need to keep running at all times. The Python server has a tendency to crash, as it's running on a server with 1GB of RAM.
I've written a script called "...
0
votes
0answers
28 views
vim-nox installs python2 support by default
I try to install vim with python3 support. After a quick research, I learnt that vim-nox installs by default the python3 support. Except that, in my case, I have python2 support.
The result of apt-get ...
0
votes
0answers
37 views
can't use apt due to encoding issue
i'm very new to python and ubuntu. Recently i was trying to run apt-get upgrade and i got this error.
SyntaxError: Non-ASCII character '\xc2' in file /usr/bin/py3clean on line 4, but no encoding ...
-1
votes
2answers
76 views
Passing Command line arguments to Python [closed]
i am trying to write a command line argument that will take in a File name, that will then try to open the file and read the contents of the file within the Linux command line, if there is no argument ...
1
vote
1answer
104 views
CentOS 7 | python3: error while loading shared libraries: libpython3.5m.so.1.0
So, im deploying a django server.
I've already installed python 3.5 without errors, but for some problems when i tried to compile mod_wsgi (so i could share the django app in an intranet environment ...
1
vote
0answers
30 views
Error creating virtual environment using venv
I am trying to setup Python development environment on Centos7 , I am relatively new to both Linux and Python. I am following this guide to setup the environment but I am getting error when I have to ...
-1
votes
2answers
35 views
Bash: pyvenv: command not found
I have Debian 8.5. with a python version 3.4.2 as default. I want to create a virtualenv using the python3 venv module. But running pyvenv in terminal is unable to find the pyvenv:
bash: pyvenv: ...
1
vote
0answers
64 views
Is this missing dependency-bug of Python3 in Kazam of Debian 8.5?
I tried to record the bug related to my typing but could not get Kazam work as root and as non-root, see following; I installed it by apt-get install kazam ffmpeg successfully but not properly because ...
0
votes
1answer
165 views
How to install/uninstall python 3.x to specific path?
I've installed python 3.5.2 on my system, but it was divided between folders in /usr/local, some went to lib, some to bin. I know why this is for packages, which are installed by apt-get, but I would ...
0
votes
1answer
242 views
Enabling python3 on vim in Fedora 24
I have vim installed and it is configured with +python3/dyn. If I run vim --noplugin I can use py3. However with my plugins enabled, I get the following error:
E837: This Vim cannot execute :py3 ...
25
votes
8answers
3k views
Is there something wrong with my script or is Bash much slower than Python?
I was testing the speed of Bash and Python by running a loop 1 billion times.
$ cat python.py
#!/bin/python
# python v3.5
i=0;
while i<=1000000000:
i=i+1;
Bash code:
$ cat bash2.sh
#!/bin/...
0
votes
0answers
86 views
Crontab and python script
On raspian I created a crontab file using the following command:
sudo crontab -e
Added the following lines to cron
@reboot sudo /etc/init.d/cron start
0 * * * * sudo /usr/bin/python3 /home/pi/dev/...
3
votes
1answer
135 views
How to find system language within Python?
Is there any way, in Python 3, to find out the language used by the system?
Even a tricky one though, like: reading from a file in a sneaky directory, and finding the string 'ENG' or 'FRE' within the ...
1
vote
0answers
22 views
Python `read -n1 var`?
Is there a Python 3 module that allows to input a single character, without having to press Enter afterwards?
Like Bash's read -n1 var?
1
vote
2answers
2k views
zipimport.ZipImportError: can't decompress data; zlib not available
On RHEL 6.6, I installed Python 3.5.1 from source. I am trying to install pip3 via get-pip.py, but I get
Traceback (most recent call last):
File "get-pip.py", line 19177, in <module>
...
0
votes
3answers
118 views
How to make python3 the default version on WING IDE
I'm new to python and I've been trying to update from python 2 to 3 by doing apt-get install python3 and it installed but when I type python --version on my terminal the version is 2.7.9. How can I ...
1
vote
1answer
65 views
Python3 not coming up in interactive mode
I have python3 installed on a work computer.
Python 3.4.3 (default, May 3 2016, 09:46:33)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux
Type "help", "copyright", "credits" or "license" for more ...
1
vote
1answer
126 views
python3 points to python2.7.6
I think I jacked up my python install by trying to mess around with virtual environments when I wasn't paying enough attention.
python3 --version
Python 2.7.6
But I'm not sure how this is the case ...
1
vote
0answers
59 views
Invalid script entry point, A callable suffix is required
I'm trying to install btrfs-sxbackup on RHEL7. It says:
Installation: pip install btrfs-sxbackup
Required: python3
I installed python34 from epel. There's no pip for it, so I installed it, ...
0
votes
0answers
430 views
How to install PyGUI for Python3?
I want to install PyGUI for Python3 on Fedora 23.
From PyGUI:
Linux - requires pygtk (tested with pygtk-2.14.0 and Gtk+-2.14.7).
And by going to PyGTK it says:
Note: New users are ...
0
votes
0answers
1k views
Upgrading python to 2.7.11 on Ubuntu 14.04
I've been trying to upgrade my python to 2.7.11 or 3.4 (the latest one) but I'm having doing so. I followed the guide here:
Upgrade to Python 2.7.11 on Ubuntu 14.04 LTS
Everything completes fine but ...
-1
votes
1answer
61 views
Need some support on Python for string append/replacement
I am writing a python script to replace/append certain strings with their equivalents..
Actual string:
Name = "com.icon.t2p"
Object = "/com/icon/t2p/host"
Expected Output :
Name = "com.icon....
0
votes
3answers
359 views
Add PATH to .bashrc
I am trying to install Anaconda on my Linux machine.
Right or wrong, at the end of the instructions they say to
add this line to the file .bashrc in your home directory: export PATH="/home/...
2
votes
2answers
434 views
FreeBSD: using python3 in uwsgi instead of python2
I have a server with FreeBSD 10.1 installed. I want to deploy a Django site on it using uwsgi+nginx+python3 and got some problems.
The site was written for python3, I installed python3.4 then python3 ...
0
votes
0answers
43 views
problem locating module in ubuntu, visible through Anaconda but not accesible
I have Ubuntu 12.04.
I have installed Anaconda3 latest version.
It has python3.5 which is default for the system now.
Some of the programs require using python2.7 which I invoke as follows
/usr/bin/...
0
votes
1answer
6k views
Installing and uninstalling Python 3.x (versions 3.5 / 3.4.3)
I just installed Python 3.5 (and its 2908 library files) using synaptic on top of my existing functional Python 3.4 install in Ubuntu 14.04. Looking at the result, after install:
$ cd /usr/bin
$ ls -...
0
votes
1answer
52 views
Does file directory/folder your code is in matter when using python3 modules ? I had an Issue [closed]
I am asking as lately while doing python GUI programing I installed tkinter by doing
apt-get install python3-tk
everything went well and when I opened python3 console while I was in the following ...
0
votes
0answers
120 views
Broken pip3.1 install
I just installed pip3 on my Debian and it return a python error every time I try to use it.
I installed it like this :
apt-get install python3-setuptools
easy_install3 pip
my version of pip :
# ...
0
votes
1answer
196 views
How to reinstall python
I messed up my python3.4 installation by make install of python3.5.
$ python3 --version
Python 3.5.0
This is what I get from pip --version:
$ pip --version
pip 7.1.2 from /usr/local/lib/python3.4/...
0
votes
2answers
174 views
Python exception
I am getting these errors when running for example lightdm-gtk-greeter-settings or compiling python applications.
I can see it is python related, but unsure on what steps are needed to resolve.
...
3
votes
3answers
862 views
Building Python packages succeeds, but package is improperly built
When running python3 setup.py build it ended with this:
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,...
0
votes
1answer
271 views
How to compile Python with (Active)Tcl 8.6?
I'm trying to compile Python 3.5.0 on CentOS 6 with Tcl 8.6. I did
./configure --with-tcltk-includes=I/opt/ActiveTcl-8.6/include --with-tcltk-libs=L/opt/ActiveTcl-8.6/libs --prefix=/home/aivar/...
1
vote
2answers
2k views
How can I switch between Python 2.7 and 3.4 that are installed on Debian 8 (Jessie)?
I'm using Debian 8.2 (Jessie), and have both Python 2.7 and 3.4 installed. Python 2.7 is the default and that's what is used when I run a Python script or interactively in the Terminal.
How can I ...
0
votes
0answers
294 views
Python Module install Error
I am doing a project to implement Modbus client in the Python.
I found the package pymodbus. I installed in Windows it works fine ,
When I installed the package in raspberry Debian Linux, it was ...
0
votes
0answers
44 views
I want to recompile a package with python3
I need to recompile a package on slackware using python3 instead python2.7
I have tried to set a link python3->python but doesn't work.
This is the slackbuild wich i use
1
vote
2answers
455 views
how to replace a sed/perl expression (change and print only matched line) with a python expression?
I have asked this question to learn how perl could replace sed.
Now I want to know how the following commands (which do the same thing) would look like for python:
sed -n '/patternmatch/s%stuff%...
1
vote
0answers
260 views
Make PyCrust use Python 3
I make successfully python 3.2.3 by opening it through terminal, I make it by
alias python="python3"
But when I open the PyCrust IDE, it opens up with Python 2.7.3, not 3.2.3.
How can I make 3.2.3 ...
1
vote
1answer
2k views
CentOs 7 Python Issue “-bash: python: command not found”
I asked this at stackoverflow, but just realized it might be best here. If I need to delete it over there or should not have posted here, please let me know. I am still new to this site. Thanks in ...
1
vote
1answer
541 views
Can't use Python3 Package Installer
I successfully installed Python3's Pip and SetupTool packages by:
sudo apt-get install python3-pip
but when I try to download/install any package for Python3 by:
pip install <package-name>
...
-1
votes
1answer
230 views
Alternative for psutil for ARM processors (raspberry pi) and python3
As I am unable to install psutil to work on raspberry pi on python3, I am looking for any alternative (or a proper way to install it).
What I want is to be able to see what's the status of the ...
1
vote
1answer
43 views
Importing Python files from inside folders
On Mac OS X, I can import a .py file named test inside the directory dir by running
import dir.test
However, on Debian (specifically Raspian) this does not work. What is the alternative?
1
vote
1answer
111 views
Cannot compile any software
I have Linux Mint 17. I wanted to compile python 3.4.2 from source. During the ./configure command, everything went well until an error came out.
configure: creating ./config.status
./config.status: ...
2
votes
1answer
2k views
Apt broken after upgrading python on 14.04 - No module named 'lsb_release'
I recently needed an updated version of Python3 for a project, so I built it from source; and I believe I made a bit of a mess. All apt based operations now end in an error here:
(Reading database ......
0
votes
0answers
1k views
How to install the GTK+2 or GTK+3 tookliks for Python 3 development on Debian?
I want to make a GTK+2 or GTK+3 application in Python 3.
For GTK+2, I tried installing PyGTK, but I cannot find any version of PyGTK for Python 3 within Debian's repositories.
For GTK+2, I followed ...
2
votes
1answer
563 views
configure python3-tk for manually installed python 3.4 debian wheezy
On wheezy apt packaging python3-tk requires python3.2 & python3 packages. I want python 3.4 and have built it manually. The trouble is I don't know how to get my manual 3.4 build to 'see' the ...