Pygame not downloading on mac - python

When I use
pip3 install pygame
on my built in mac terminal, I expect it to return nothing or maybe something confirming the download, but instead I get
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/80/ct2vlpb17tq6fv7tk7fzrq300000gn/T/pip-install-0lflyyj6/pygame/setup.py'"'"'; __file__='"'"'/private/var/folders/80/ct2vlpb17tq6fv7tk7fzrq300000gn/T/pip-install-0lflyyj6/pygame/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/80/ct2vlpb17tq6fv7tk7fzrq300000gn/T/pip-record-riycfu31/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
That was only the error message itself, the actual output was about 400 lines long, I can post that if need be.

pygame 1.9.6 doesn't provide binary wheels for Python 3.8 for MacOS X; they provides wheels for w32/w64 and they provide wheels for MacOS X for Python 3.4-3.7.
My advice is to use Python 3.7. Python 3.8 is ok but 3rd-party modules are not yet available.

Related

hello,any advice for adding TA-Lib

When trying to use a cmd in visual studio code Version: 1.53.2 (user setup)
Chrome: 87.0.4280.141
Node.js: 12.18.3
OS: Windows_NT x64 10.0.19041
Python version 3.9.2..
This is my error, I have been at stand still for a day..pls help, Thanks Devs
ERROR: Command errored out with exit status 1: 'c:\users\cash\coinview\.venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\CASH\\AppData\\Local\\Temp\\pip-install-zjh5g7bp\\ta-lib\\setup.py'"'"'; __file__='"'"'C:\\Users\\CASH\\AppData\\Local\\Temp\\pip-install-zjh5g7bp\\ta-lib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\CASH\AppData\Local\Temp\pip-record-jzlcw_4l\install-record.txt' --single-version-externally-managed --compile --install-headers
'c:\users\cash\coinview\.venv\include\site\python3.9\TA-Lib' Check the logs for full command output.
You need to install the ta-lib native library before you can install the Python module that adds a Python API to that library.
I tried installing this module on my Mac before I installed the native library. I got a very similar error:
ERROR: Command errored out with exit status 1: /Users/steve/envs/foo/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y2/84p16ph920x6j2g2glfb52pw0000gp/T/pip-install-U7_tLW/ta-lib/setup.py'"'"'; __file__='"'"'/private/var/folders/y2/84p16ph920x6j2g2glfb52pw0000gp/T/pip-install-U7_tLW/ta-lib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/y2/84p16ph920x6j2g2glfb52pw0000gp/T/pip-record-OIbYo6/install-record.txt --single-version-externally-managed --compile --install-headers /Users/steve/envs/foo/include/site/python2.7/TA-Lib Check the logs for full command output.
Then I did:
brew install ta-lib
to install the native library. After doing that, the installation of the Python library worked just fine.
I don't know Windows, so I can't tell you how to install the native library. It seems very likely, however, that that's the solution to your problem, just like it was mine.

how to install mathutils

I have already installed the c++ tools and updated the tools by pip install --upgrade setuptools but installing of mathutils does not work
Command errored out with exit status 1: 'c:\users\33749\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\33749\AppData\Local\Temp\pip-install-jbsp1j3h\mathutils_62d38e7d44a44d75978e68055dbcc440\setup.py'"'"'; file='"'"'C:\Users\33749\AppData\Local\Temp\pip-install-jbsp1j3h\mathutils_62d38e7d44a44d75978e68055dbcc440\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\33749\AppData\Local\Temp\pip-record-bc4w9hy_\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\33749\appdata\local\programs\python\python39\Include\mathutils' Check the logs for full command outpu
Since the module "mathutils" is written in portable C, it needs c++ tools to compile it. therefore, after I installed the VS from the link provided in the VS Code terminal and restarted the computer, the module "mathutils" can be installed.

How to Install Scapy_http for python 3 windows

I can't seem to install scapy_http on my windows machine. I have installed scapy-http (Please note the difference), but it doesn't work.
I always get this error when trying to install scapy_http:
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\desktop\spoofer\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-osyn3x82\\meinheld\\setup.py'"'"'; __file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-osyn3x82\\meinheld\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\USER\AppData\Local\Temp\pip-pip-egg-info-u_2h8iz_'
cwd: C:\Users\USER\AppData\Local\Temp\pip-install-osyn3x82\meinheld\
Complete output (2 lines):
Are you really running a posix compliant OS ?
Be posix compliant is mandatory
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
how can I install it with no issues?.
Scapy 2.4.3+ includes scapy-http so there's no need to install it.
See the disclaimer on scapy-http's github page: https://github.com/invernizzi/scapy-http
OBSOLETE!
Scapy 2.4.3+ has native support for HTTP. It has the same syntax as this package (isn't that nice), plus it packs more features!
Please consider this package as obsolete - long live Scapy!

venv - cannot install ansible in Windows 10

I am trying to get ansible installed in venv in Python 3.8 in Windows 10.
I have tried:
pip install -U setuptools
pip3 install ansible
pip install –user
So far that has not worked.
I am getting error:
ERROR: Command errored out with exit status 1: 'c:\users\XXXXXXX\python\test_env\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\XXXXXXX\\AppData\\Local\\Temp\\pip-install-fi3oz0fp\\ansible\\setup.py'"'"';
__file__='"'"'C:\\Users\\XXXXXXX\\AppData\\Local\\Temp\\pip-install-fi3oz0fp\\ansible\\setup.py'"'"';
f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');
f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\XXXXXXX\AppData\Local\Temp\pip-record-y3d0j5k5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\XXXXXXX\python\test_env\include\site\python3.8\ansible' Check the logs for full command output.
From the documentation regarding requirements for the control node:
Currently Ansible can be run from any machine with Python 2 (version 2.7) or Python 3 (versions 3.5 and higher) installed. This includes Red Hat, Debian, CentOS, macOS, any of the BSDs, and so on. Windows is not supported for the control node.
Meanwhile you can run ansible on Windows 10 from WSL (prefered) or from cygwin.

Cannot install cvxpy with python 3.8

I have tried installing cvxpy (https://www.cvxpy.org/install/) for python. I use Python 3.8 for all my projects and am not to fond of making virtual environments where i use 3.7. Does anyone have a fix for using cvxpy on python 3.8 (I am using windows)?
Thanks!
ERROR: Command errored out with exit status 1:
ommand: 'AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'AppData\\Local\\Temp\\pip-install-kehvj2di\\osqp\\setup.py'"'"'; __file__='"'"'AppData\\Local\\Temp\\pip-install-kehvj2di\\osqp\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'AppData\Local\Temp\pip-record-1u4al7gt\install-record.txt' --single-version-externally-managed --compile
cwd: AppData\Local\Temp\pip-install-kehvj2di\osqp\
-- Selecting Windows SDK version to target Windows 10.0.18362.
CMake Error at CMakeLists.txt:5 (project):
Failed to run MSBuild command:
MSBuild.exe
to get the value of VCTargetsPath:
The system cannot find the file specified
-- Configuring incomplete, errors occurred!
See also "AppData/Local/Temp/pip-install-kehvj2di/osqp/osqp_sources/build/CMakeFiles/CMakeOutput.log".
The system cannot find the file specified
CMake Error: Generator: execution of make failed. Make command was: MSBuild.exe osqpstatic.vcxproj /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=14.0 /v:m &&
error: [Errno 2] No such file or directory: 'osqp_sources\\build\\out\\Release\\osqp.lib'
----------------------------------------
ERROR: Command errored out with exit status 1: 'AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'Local\\Temp\\pip-install-kehvj2di\\osqp\\setup.py'"'"'; __file__='"'"'AppData\\Local\\Temp\\pip-install-kehvj2di\\osqp\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'AppData\Local\Temp\pip-record-1u4al7gt\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Your problem does not seem to be the Python version, but lack of build tools. Install Microsoft Visual Build Tools and make sure they are on the PATH (so that conda can execute MSBuild.exe).
Build Tools installation instructions from cvxpy (in pptx).

Categories