How should I install a Python module in windows [duplicate] - python

This question already has answers here:
error: Unable to find vcvarsall.bat
(42 answers)
Closed 8 years ago.
I downloaded the cosmolopy Python library and tried to install it in every possible way...
Finally, I saved Cosmolopy as c:\python27\Lib\cosmolopy\...
1 Then run the setup file which gives me error
2 Run the following command form command prompt
python setup.py build
python setup.py install
BUT AGAIN GIVES ME ERROR: Unable to find vcvarsall.bat
PLEASE HELP ME OUT IT'S TALKING A LOT OF TIME IN INSTALLING MODULE

You could just put it in the same folder as your project.
EG:
Some_Directory\
python_file.py
The_module.py

Related

When I run the pip command via cmd, I get an error [duplicate]

This question already has answers here:
Installing pip is not working in python < 3.6
(6 answers)
Closed 1 year ago.
I want to download a module by typing 'pip install pygame' on cmd. But I am getting syntax error. I'm not in the python compiler either. I tried all the solutions on the internet. I'm still getting the same error. If I type 'pip --version' it's the same. how can i overcome this problem. You can see the error screenshot in below
enter image description here
The "f" syntax has been introduced in Python 3.6, while you're running on Python 3.5
Use a more recent version of Python.

PyCharm install package with square brackets [duplicate]

This question already has answers here:
'pip' is not recognized as an internal or external command
(40 answers)
Closed 1 year ago.
I want to install "stabe-baselines3[extra]"
But in the PyCharm Package installer is only "stable-baselines3" available.
When try to install it via 'pip install' I do get this error:
Translation: 'pip' is not recognized as an internal or external command
How do I get the [extra]?
From: https://github.com/DLR-RM/stable-baselines3
So are you actually needing that additional functionality for atari games?
If so, then you can just use the built-in Terminal to manually install the package you are needing:
Which if you didn't already know, can be found right here:
Otherwise, you can just use stable-baselines3, as you have already found is available within the package manager.
The terminal has to be used. Reason the terminal hasn't worked is because in the settings 'Start directory' hasn't been the Python Scripts folder but the main-file folder.
After that folder change the pip install command worked!

How to install atari-py in Windows 10? [duplicate]

This question already has answers here:
OpenAI Gym Atari on Windows
(5 answers)
Closed 2 years ago.
I tried to install lib pack atari-py, and can not find any clear information, most of them wrote that it is no way to install this pack into Win 10 at moment.
pip install gym[atari]
I have this error:
Unable to execute 'make build -C atari_py/ale_interface -j 3'. HINT: are you sure `make` is installed?
error: [Error 2] The system cannot find the file specified
How to find this "make" file and configure it ?! Any information would be appreciated !
From https://github.com/openai/gym:
We currently support Linux and OS X running Python 2.7 or 3.5.
No Windows.

How to install the module pysqlite2 [duplicate]

This question already has answers here:
error: Unable to find vcvarsall.bat
(42 answers)
Closed 8 years ago.
I want to install the PySqlite2 module in my python library. I opened command prompt and went to the download directory. This contains the Pysqlite-2.6.3 package extracted. I entered python setup.py install. It starts copying all the files untill it gives: Errror: Unable to find vcvarsall.bat. I can't seem to figure to out. My systems runs a 32bit version of windows 7.
While running setup.py for package installations Python 2.7 searches for an installed Visual Studio 2008. You can trick Python to use a newer Visual Studio by setting the correct path in VS90COMNTOOLS environment variable before calling setup.py.
Find more here.

Unable to find vcvarsall.bat [duplicate]

This question already has answers here:
error: Unable to find vcvarsall.bat
(42 answers)
Closed 9 years ago.
I am working with python 2.7.3 and I am trying to install Python Kerberos. But it is giving me the following error:
error: Unable to find vcvarsall.bat
The entire traceback is as follows:
setup.py install
running install
running build
running build_ext
building 'kerberos' extension
error: Unable to find vcvarsall.bat
I want to know if there is any way of resolving the error without installing Visual Studio. It would be great if someone will be able to help resolve these errors.
You need to install Visual Studio (2008), Python is looking for a compiler you don't have.
See this question: error: Unable to find vcvarsall.bat
Note: If you were curious, vcvarsall.bat is a shell script that updates your environment to let you compile with Visual Studio.

Categories

Resources