Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [python]

Python is an interpreted programming language that is often, but not solely, used as a scripting language. A version of Python is included by default on all Ubuntu distributions.

0
votes
0answers
9 views

How to uninstall a package which were installed by pip?

I have a package installed with pip. when I try to uninstall it, it only removes one certain module. How can I remove all other dependencies with it. my package is MSNoise when I try pip uninstall ...
0
votes
0answers
13 views

not open python as file or directory

I tried to develop pyarrow on my system for use it at python by using this site commands https://arrow.apache.org/docs/python/development.html in use the billow command cd arrow/python python ...
0
votes
2answers
13 views

Running Tkinter programs on Ubuntu 18.04

I'm trying to complete this tutorial https://likegeeks.com/python-gui-examples-tkinter-tutorial/amp/. I have the following code written from tkinter import * window = Tk() window.title('Welcome to ...
-1
votes
1answer
24 views

Error while executing Python code

When I run gdb I got this Error Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'angelheap' Error while executing Python ...
0
votes
1answer
32 views

unable to install software-center

I'm trying to install software-center but for that it depends on python-lxml. I tried to install python-lxml using apt-get install python-lxml But got It depends on python>= 2.7 but it is not ...
1
vote
0answers
16 views

How to remove python 3.6 from deadsnakes ppa after upgrade to Ubuntu 18.04

On Ubuntu 16.04 I installed Python 3.6 from the deadsnakes ppa. Now I upgraded to Ubuntu 18.04 which builds on top of Python 3.6 but instead of removing the old version of Python 3.6 it kept the ...
3
votes
0answers
30 views

Nautilus and Nemo don't recognize all python files

Nautilus and Nemo use two different icons for python files: But I want them to show the python icon for all python files. mimetest gives the same result for both files: $ mimetype buy_test.py ...
0
votes
1answer
39 views

“Couldn't find support for device”, cannot log in or access network after removing python2.7

I accidentally removed python2.7 so most of things disappeared like all bars and I couldn't use terminal. After searching to try to solve it like install ubuntu-desktop then after restarting the ...
0
votes
1answer
22 views

problem with two versions of python

I'm new to python and ubuntu. I installed two versions of python to be able to use them in jupyter .. but when i checked the version of numpy i got python import numpy numpy.__version__ and got &...
-1
votes
1answer
26 views

get error: can't find '__main__' module when trying to run code in pycharm

When I try to run any code in pycharm I get this error message: /home/evan/PycharmProjects/testing/venv/bin/python: can't find 'main' module in '/home/evan/PycharmProjects/testing' I'm new to ...
0
votes
0answers
30 views

Ubuntu terminal not getting launched

I was trying to change my ~/.bashrc file to make python3 the default. I abruptly closed the terminal. After that terminal is not launching if opened from accessories. I opened the terminal from my ...
0
votes
1answer
27 views

How can I assign a URL to my IP (server, 18.04)? [on hold]

I recently got Ubuntu Server 18.04 and I just got a basic HTTP server running through Python http.server, socket, and socketserver modules. Now I'm wondering how I can assign a URL to that IP and set ...
1
vote
1answer
19 views

Unable to locate package python-pygoocanvas

I tried to install the below package : sudo apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev ipython and it's alarmed : E: Unable to locate package python python-...
1
vote
2answers
38 views

Calling Python from bash script not working with XFCE keyboard shortcut

I have a python script to translate text via command line, the usage is script.py "Hola Mundo" and the output will be Hello World. Now I want to send text to this program via a keyboard shortcut in ...
2
votes
1answer
63 views

impossible to install with apt-get, python missing

I just updated my xubunto to 18.4 LTS, and I have no bluetooth anymore. I tried to install blueman and here is the error : nicolas@nicolas-UX530UX:~$ sudo apt-get install python3 [sudo] password for ...
1
vote
0answers
13 views

Service file not playing video

I have written a Python script that receives an online link from the server and downloads it and plays it simultaneously. After that, it plays it from the device unless it receives a new video link. ...
1
vote
1answer
15 views

Uninstalling Anaconda in Ubuntu

I am trying to remove Anaconda2 from my Ubuntu server as it is clashing with other versions of Python. As mentioned in this post, I cleared the lines ~./bashrc containing reference to anaconda2. When ...
0
votes
0answers
14 views

where is python modules

while i am tring to connect firebase into python i tried to install python-firebase by ozgur python-firebase i exactly done what the instructions were said but while i am tring to import firebase it ...
1
vote
1answer
20 views

Setup Python program as systemd service

I've made a program to log certain system stats, and I would like to run that program as a Linux service so I can easily manage it (start, stop, etc). I've spent hours researching and trying things, ...
1
vote
1answer
36 views

How can I install modules of python in Ubuntu? [duplicate]

I have python3 installed in Ubuntu 18.04 and I want to use different modules of python. Can anyone tell me how to install them?
0
votes
1answer
25 views

Will it be safe to use python 2.7 on Ubuntu 18.04 after python 2 EOL?

Ubuntu 18.04 will still be supported after 2020, yet python 2.7 will reach its end of life. If a CVE or a bug raises for python 2.7 after 2020, will the Ubuntu package get an official fix (through APT)...
0
votes
2answers
90 views

How to safely switch to python3 as default after upgrade to Ubuntu 18.04

Since python3 is the default python version in Ubuntu 18.04 and python2 won't be shipped by default on a fresh Ubuntu 18.04 installation, how can I make python3 default after an upgrade to Ubuntu 18....
0
votes
0answers
19 views

Weird Python version behavior

I have an older Ubuntu/Linux Mint version where the newest Python in apt is 2.7.6. I have some problems with that version, so I built 2.7.14 from source. But as soon as I leave the Terminal, Python ...
-1
votes
0answers
23 views

how to average each cell of 2d matrix 100*100 of multiple files using python [closed]

I have n number of 2d (100*100 matrix) files like: file 1: 3 4 6.7 5 8 9 ..... 4 5 6 7 8 5 6.4.... . . . . . . . ..... . . . . . . . ..... file 2: 3 4 5.7 5 8 9 ..... ...
0
votes
0answers
37 views

Python errors when try to install [on hold]

I have search a couple of days to solve some errors with python. Whatever I want to do in my terminal , I get these errors. Something should not be config right? pi@keuken:~ $ sudo dpkg --configure -...
0
votes
1answer
34 views

mysql-connector is showing error [closed]

I installed mysql-server. It doesn't ask password or username but it is installed. Then I installed mysql-connector. After this created this file: import mysql.connector mydb = mysql.connector....
1
vote
0answers
25 views

Jupyter kernel dies when I attempt large data processing [on hold]

When I try to use this IPython notebook to process 150000 lines of data the kernel of the notebook dies. I asked about this issue on Stack Overflow in Spanish but nobody found a way to make a ...
0
votes
0answers
26 views

Networking Commands not working in Ubuntu 18.04.1 LTS

I am currently using Ubuntu 18.04.1 LTS in Dual Boot with Windows 10 on my Lenovo G-50-70 machine. The setup process was fine but later I found that some of my networks command i.e. cURL, telnet and ...
0
votes
1answer
18 views

Configuring Atom for running Python

I have been trying to setup Atom editor for running python programs on Ubuntu 18 The packages I installed are : script atom-runner autocomplete-python python-tools I even configured the config....
0
votes
0answers
25 views

Automate Deletion of File from terminal

I want to write a Python script that will automate my commands without waiting for user input. My python script will delete the least played video. When I execute the command: rm video_123.mp4 it ...
0
votes
0answers
22 views

How to install pip3 in Ubuntu Server 18.04 [duplicate]

So I'm trying to install pip3 in Ubuntu Server 18.04 and I'm running sudo apt install python3-pip like it tells me to, but the package is not found. What can I do?
0
votes
0answers
32 views

After moving location of python and modifying bashrc, backspace doesnt work in the python interpreter!

My python distribution was at /home/kvnp/anaconda3 But I wanted to put it at the same place as my other programming software, so I moved it to /usr/local/anaconda3 Then, I modified the following ...
0
votes
1answer
50 views

Installing tensorflow with GPU support. libcublas.so.9.0 missing after installing GPU prerequisites

I am trying to install Tensorflow with GPU support on Ubuntu 16.04 64x for an conda environment with Python 3.6. I tried installing all the GPU requirements and then running pip install --ignore-...
0
votes
1answer
18 views

How to fix windscribe Json object couldn't be decoded

So basically I am trying to run this VPN, windscribe. To start I am running this commond sudo /etc/init.d/windscribe-cli start and I got this error: Traceback (most recent call last): File "...
0
votes
0answers
55 views

ath10k backporting issue, please help

I'm using Ubuntu 16.04 with 4.8 kernel, need to backport ath10k driver from a 4.9 kernel, I followed instruction online to download a backport stat with tag "v4.14-rc2-1" and ran Python script as ...
0
votes
1answer
80 views

virtualenv - Can anyone please rectify this problem?

The image is a screenshot of the error which i am getting while this command in ubuntu- $ sudo pip install virtualenv The directory '/home/asha/.cache/pip/http' or its parent directory is not owned ...
0
votes
1answer
48 views

How do I get the first 5 lines of the top command and append to a file?

I know you can do this by using the following command: top -b -n 1 | head -n 5 However, I am trying to store and append the data from the top file to a file which is done by the following: top -b -...
0
votes
0answers
22 views

TypeError: coercing to Unicode: need string or buffer, NoneType found (PyPhisher)

I'm running Ubuntu 18.04. I cloned PyPhisher from GitHub - git clone https://github.com/sneakerhax/PyPhisher then I ran PyPhisher.py file by executing - python PyPhisher.py So I got this output ...
7
votes
2answers
2k views

Check available memory in Linux

I am writing a Python script which downloads 4K videos and plays them on request. When my device memory goes above 7.2 GB it deletes the video with the least number of views. Using the free ...
2
votes
2answers
70 views

When *.pyc files (related to their deb-packages) are created and how to recreate them?

I have two Ubuntu 18.04.1 LTS systems: clean installation of Ubuntu 18.04.1 LTS upgraded from Ubuntu 16.04.5 LTS Note: All things in the both systems have been installed using APT (from deb-...
-4
votes
0answers
30 views

pep installation failing with error [closed]

i used pip and pip3 to install pep314 and pep241 to improve installation error.but i facing with unmatch version error.does any idea to solve it? pip3 install pep314 pip install pep241 pip3 install ...
0
votes
1answer
39 views

error installation

I use sudo pip3 install pyarrow and it got me an error Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-q2wrajvr/pyarrow/ i used pip3 install pyarrow but it got me ...
0
votes
0answers
25 views

Can't open terminal after trying to install Python [duplicate]

I was going trough a book about programming in Python so tried to install it using these instructions. Now I cannot open the terminal anymore. I tried the fixes they recommended, but they did not ...
0
votes
1answer
29 views

Calling .py script from .sh script error “ImportError: No module named apiclient.discovery”

I have a python script I wish to call each day with a cron job. Because the .py script loads several files from it's directory, rather than change all the file paths within the .py script to be full ...
0
votes
0answers
31 views

Configuring Eclipse/PyDev to work with projects on remote server and remote interpreter (workarounds and pitfalls)

Question duplicate: https://stackoverflow.com/questions/51693969/configuring-eclipse-pydev-to-work-with-projects-on-remote-server-and-remote-inte I have the following set up: Ubuntu 16.04-64 on host;...
0
votes
1answer
46 views

Where can I find my Python directory in Ubuntu

I need to do the instructions below in Python in order to make my python program use my compiled OpenSSL instead of the Ubuntu shipped one: export LDFLAGS="-L/my/path/lib/ -L/my/path/lib64/" export ...
0
votes
0answers
36 views

Why is the apt sources different between a minimal and desktop install?

I was banging my head not being able to install mariadb and python3-pip in a minimal install of Ubuntu 18.04. Every web search showed pages with the expected apt install package commands. When I ...
1
vote
1answer
46 views

ModuleNotFoundError: No module named 'nltk' after installation on a Windows 10 + Ubuntu 18.04 machine

I've been trying to solve this problem for the last couple of hours, without luck. I'm trying to run a python program that I wrote on my Windows 10 machine on my other machine that has a dual-boot ...
0
votes
0answers
11 views

Ubuntu 18.04 refuse to restart after sudden stop while writing on disk

I'm sorry that this question will be no-code only but, as the title say, my ubuntu partition (in which I was coding) seems to be stuck: What happened: I was runnin a python script in order to make ...
0
votes
1answer
154 views

“Unable to locate package python-pip” When trying to install from fresh 18.04 install [duplicate]

I was following a tutorial online for python and it had me do this: akclark@enceladus:~$ pip install virtualenv But I got the following: Command 'pip' not found, but can be installed with: sudo ...