Questions tagged [python3]

Python is an interpreted, general, high-level programming language. Programming questions are off topic. Questions about the use of Python should be asked at Stack Overflow (http://www.stackoverflow.com) instead.

#About Wikipedia has much more: http://en.wikipedia.org/wiki/Python_(programming_language)

The official website is here: http://www.python.org/

Python's direction and language development is still controlled by its original author, Guido van Rossum. Guido is now an employee of Google, which uses Python exclusively as its glue/scripting language. He is affectionately known as the language's 'benevolent dictator'.

As of Spring 2011, there are two major development branches of Python: 2.x and 3.x (Python 3000). Python 3000 was released with many breaking syntactic changes as a result of efforts to promote consistency in the language and to fully integrate Unicode support. This has led to slow adoption of the new version, as many people are dependent on the extensive libraries available in Python and many libraries have not been upgraded to support Python 3.

#Tag usage

Use for questions about computer hardware or software related to Python. Do not ask programming questions as they are off-topic here. Ask them on Stack Overflow instead.

326 questions
7
votes
1 answer

How to NOT change the shell prompt when activating a Python venv?

I created a venv like so: python3 -m venv .venv When I activate it, the shell prompt is changed. antkong@konga-mbp ~/dev/my-project (git-branch-name) $ source .venv/bin/activate (.venv) konga-mbp:my-project antkong$ How can I keep the prompts the…
Anthony Kong
  • 5,028
3
votes
4 answers

Edit with IDLE missing using Windows 10

I installed Python 3.6.1 windows 64-bit. But my edit with idle is missing when I use the right click. Can somebody help? I already reinstalled a few times, but the problem still there. =(
todd
  • 31
2
votes
0 answers

No module named 'cryptography.hazmat.bindings._constant_time' - Exchangelib Module - Python

I have the following issue. I'm working with Python 32-bit on win32. I've installed Exchangelib 1.12.5, however when trying to import the module, I get the following error: File…
Kwameq
  • 21
1
vote
2 answers

Is this port of Scapy compatible with Python 3.x?

I found this attempt at poring the Scapy packet manipulator to Python 3.x. Has anyone had any experience using it in Python 3.x? Does it work?
Jules
  • 698
1
vote
0 answers

pymongo - LookupError: unknown encoding: idna

I'm having an error with pymongo (version 3.6.0) when I try to instantiate a MongoClient. My python version is 3.7.4, running on OS X Mojave. Does any one know how this problem can be fixed or if there is any workaround? $ pip3 freeze | grep…
1
vote
0 answers

How to remove python3.7.2 from /usr/local/bin

I have accidentally installed python3.7 in /usr/local/bin instead of /usr/bin/. This makes scipy not available for some of my scripts. Is there a way to uninstall python3.7 and reinstall in /usr/bin/ Thanks! SP
1
vote
0 answers

cv2 and pyqt4 can't work together

I try to use cv2 with PyQt4 widget but I keep getting this error: (python3:3974): GLib-GObject-WARNING **: 12:41:27.117: cannot register existing type 'GdkDisplayManager' (python3:3974): GLib-CRITICAL **: 12:41:27.118: g_once_init_leave: assertion…
Learner
  • 11
0
votes
1 answer

Python 3.3 (Using IDLE)

I recently installed Python 3.3 on Centos 6 (which has Python 2.6.6 already installed). When I try to open the the Python Shell with IDLE, it opens with Python 2.6.6. How do I open Python 3.3 with IDLE?
user98496
  • 723
0
votes
0 answers

Python3 Tkinter I want to make screen transition framework

I want to make screen transition framework. Please tell me the best way. Conditions Use tkraise() method. Fast process during screen transitions is performed in main thread. (ex. tkinter(gui), change variable) Processing that takes time during…
person
  • 13
0
votes
0 answers

Aborted (core dumped) after breaking a python progrm

I was following this post, and released a python program running on my console using the combination CTRL+z. Now, each time I try to run this program I am getting: Aborted (core dumped) I am new to this and I am not sure how to mend this.
havakok
  • 151
0
votes
1 answer

Cannot import Python Libraries anywhere

Issue on importing Python Library Background I am on MacOS 10.14.5. I currently cannot import any Python third-party Library from anywhere (including VSCode, Pycharm and terminal). Detail For example, I have been using pip3 install pandas to…
yChen
  • 11
0
votes
1 answer

Module not found error: No module named 'nltk' on OS X 10.14

I am still somewhat new to Python programming. Having read the contributions to this topic, I am still stuck: I have Python 3.7.4 installed (with Homebrew) on OS X 10.14. In terms of the path everything looks fine: which python3 …
PyKoch
  • 21
0
votes
1 answer

Python alpha_vantage module not returning all quotes for 'get_batch_stock_quotes'

When using alpha_vantage to pull batch stock quotes for some reason get_batch_stock_quotes does not return the quote for symbol "ARRS". However, if the function is called using only "ARRS" in the symbols list, the quote is returned. I don't want…
0
votes
1 answer

Python cannot import modules

I am running Windows 10 and python 3.6.3 Python no longer has the ability to import modules to any of my codes, including codes that previously worked. I keep getting the error that no module can be found for anything.
0
votes
1 answer

How to install python-docx for Python3

This seems a basic question, but I cannot find the answer. Running Mint 19.1 I have installed python-docx with sudo pip install python-docx If I run python doctest.py it runs python 2.7.15 and works fine, but if I run python3 doctest.py it runs…
Mick Sulley
  • 23
  • 1
  • 5
1
2