Skip to content
Advertisement

Tag: python-3.x

Why would I add python to PATH

I am beginning to look at python, so when I found a tutorial it said that the first thing to do would be to download python from www.python.org/downloads/ Now when I downloaded python 3, I then started the installation and got to Why would I want to “Add Python 3.5 to PATH”? What is PATH? Why is it not ticked

Copy image to clipboard?

First of all, the question on SO copy image to clipboard in python leads to answer Write image to Windows clipboard in python with PIL and win32clipboard?, which was only good for Python 2.x. — I tried it and it didn’t work. I overcame one problem: StringIO and cStringIO modules are gone in Python 3.0:, but bumped into another one:

Pip Install hangs

I currently have Python 3.5 on my Windows machine. I’m trying to install a Python package using the command “pip install” but as soon as I hit enter nothing happens. The action hangs for such a long time and when I try to exit the command line, it freezes. How do I get pip install to work? Answer @JBernardo ‘s

How to install pyaudio on mac using Python 3?

I first tried: but I was told that Then I tried: Then I got: but I had installed portaudio Warning: portaudio-19.20140130 already installed So what can I do? Answer I’m assuming you are on a Mac. This is a simple issue to fix. First install Xcode. Then restart your computer. Afterwards run the commands in sequence, So to clarify, Xcode

TypeError argument must be an int or have a fileno() method

Seen here https://stackoverflow.com/search?q=TypeError+argument+must+be+an+int+or+have+a+fileno%28%29+method But just can’t quite find my answer. I am trying out a chat script Server side runs perfectly fine. But client Has run from cmd, not IDLE because of issues (read something about it relating to my issue) Traceback Answer select doesn’t work with non-socket objects on Windows. For more information see the documentation about select.select, where

How To Subscribe To Websocket API Channel Using Python?

I’m trying to subscribe to the Bitfinex.com websocket API public channel BTCUSD. Here’s the code: I believe ws.send(“BTCUSD”) is what subscribes to the public channel? I get a message back I think is confirming the subscription ({“event”:”info”,”version”:1}, but I don’t get the stream of data afterward. What am I missing? Update: Here’s the code that finally worked. Answer The documentation

Advertisement