When i try to install the Skype4Py and run setup.py in my cmd this message comes up:
I have python 2.x. Any ideas where I am making a mistake. Thanks in advance!
just run : python setup.py install
It seems like an easier way to install Skype4Py would be to use Pip, which you can download from https://pip.pypa.io/en/latest/installing/ but if you are using 2.7.9+ or 3.4+ it comes preinstalled. Next you will want to run the command "pip install Skype4Py" to install the package. Once this is all installed, use the Quick-Start documentation, found here https://github.com/Skype4Py/Skype4Py#usage to help you get started. Good Luck!
Related
In my project I need to use django-simple-history but when I run the command: pip install django-simple-history I got the ERROR:
Could not build wheels for django-simple-history, which is required to install pyproject.toml-based projects
Any solutions please, thank you in advance.
Check if you have required Python and Django versions installed ( https://django-simple-history.readthedocs.io/en/latest/ ).
Try to install earlier version of django-simple-history, for Windows:
py -m pip install django-simple-history=="3.0.0"
Let's see if these steps could solve your problem.
Download the files from PyPI
Install the files using pip
python -m pip install ./path/to/file
Last but not least, If you think that is a bug, please consider to submit the issue via Github
Make sure you disable the path length limit in Windows:
I'm developing plugin Nrpe in Python.
When i try to execute my code it works well on my machine. But when the NRPE execute it, an error occurs : 'No Module named pycurl'
I'm working on CentOs6.10 with Python 3.4 and i've installed pycurl with easy-install, the path to pycurl.py is /usr/lib/python3.4/site-packages//usr/lib/python3.4/site-packages/pycurl.py
And my PYTHONPATH = ['/usr/local/bin', '/usr/lib64/python34.zip', '/usr/lib64/python3.4', '/usr/lib64/python3.4/plat-linux', '/usr/lib64/python3.4/lib-dynload', '/usr/lib64/python3.4/site-packages', '/usr/lib/python3.4/site-packages']
I hope somebody could help me ?
Thanks !
You probably need something like:
python3 -m pip install pycurl
You may want to use: python3 -m pip install --user pycurl
or a virtual environment.
pycurl doesn't come with python. You have to install it with pip from pypi.
I'm a fairly new to Python and I am trying to enter the following code:
from websocket import create_connection as cc
import json, time
I want to look at BTC and LTC stocks in a live feed type-fashion but I keep getting this error:
ModuleNotFoundError: No module named 'websocket'
I've been looking around and it seems that a common solution is:
pip install websocket
that just didn't connect with me. Most sites say install this and just have the above code but I have no idea where to install it or what to do with it.
First, you need to install pip if you don't have it. Type pip in your terminal or cmd to see if it is installed. Or else, install it first by downloading get-pip.py and executing it.
Then you do pip install websocket, which will install the module for you.
If the websocket and websocket-client doesn't work, try:
pip install websocket_client
It works for me.
Worked on my machine using
pip install "websockets==8.1"
you can also try
pip install websocket-client
There seem to be 2 packages in python 3.7: websocket, and websockets. In my case, I tried to install the former but it had to be the latter. Wasted half an hour of my life on that. People who get here might be in the same bag.
For me, nothing worked except Pycharm editor showed a suggestion 'install websocket' which worked(in the import line).
Try with pip install websockets that's work for me!
If you are using pip, as mentioned it is pip install websockets
However, if you are using conda,
use: conda install -c conda-forge websockets
I use Mac OS X Lion and Python 2.7. I am new to python. Can anyone tell me how to import AppKit and PyObjC to Python. But i get the errors when trying to import Import Error: No module named AppKit or 'Import Error: No module named PyObjC.
Trying easy_install does not help either.
What can i do to import these 2 modules?
If not already installed, install pip by running:
sudo easy_install pip
Then run:
## install for all users
sudo pip install pyobjc
or
## install for current user only
pip install pyobjc --user
NOTE: the general recommendation is to avoid using the system python, and use instead a user-maintained version, for example installed via brew install python3, macports, conda or whatever you already use for third party dependencies.
If you're on Mac it could be you're using the incorrect pip version, try sudo pip3 install -U pyobjc that solved it for me.
This a good guide on how to install PyObjc: http://ioanna.me/2009/09/installing-pyobjc-xcode-templates-in-snow-leopard/
When I was trying to install PyObjc I found it quite hard, but after a while, (and lots of google searches) I got it working.
Edit
I've found a more modern guide on how to do this. Download the templates and put them into your ~/Library/Developer/Xcode/Templates/ directory, and everything should work correctly.
If you are using PyCharm, you should install PyObjC package manually within it because of venv I guess. This was the only working solution for me.
In my case none of them worked. I was using Anaconda in my mac, later I discovered that the main issue with the Anaconda. Then I installed PyObjC with it's all supporting libraries inside Anaconda in a specific Environment.
I run the command line by clicking the Environment play icon and run my script.
It worked without any issues :)
I tried to install pygame via pip but this fails. Based on my google searches, it sounds like easy_install also fails.
I also checked out: http://www.pygame.org/wiki/MacLionCompile but the solution is incomplete.
I'm running python 2.7.1 bundled with Lion.
Suggestions? Appreciate the help.
You could try the binary package for Lion, available on the pygame website.
It worked for me (OSX 10.7.1 with bundled Python 2.7.1)
See the answer from this question: PyGame in a virtualenv on OS X with brew?
Essentially, the PyGame in PyPy hasn't been updated for a while.
The version in the repository has updated build scripts that handle Pythonbrew, virtualenv and other utilities.
The pip command to use is:
pip install hg+http://bitbucket.org/pygame/pygame
Just for the sake of anyone that googles this question, my lab has a wiki set up with instructions for installing Pygame with just about any configuration:
http://smash.psych.nyu.edu/labwiki/PyGameSetup
I had good luck with macports:
Install macports if you don't already have it: http://www.macports.org/
Install python via macports: sudo port install python26. I typed in the command it said at the end to set it as my default python installation. If you don't, then in step 4 you'll have to run the app a different way.
Install pygame: sudo port install py26-game
Run your pygame app: python main.py
I have been looking for this for myself and I stumbled upon this build that happens to work. I am using OSX 10.8.3 and python 2.7.
http://inside.catlin.edu/moodle/mod/resource/view.php?id=16736