Failing to download pandas_datareader package in PyCharm [duplicate] - python

This question already has answers here:
How do I use installed packages in PyCharm?
(14 answers)
Closed 1 year ago.
When I try to download the package using the GitHub URL it tells me I have an error. I attached a screenshot for this particular issue.
I have also tried to install it through the console and it successfully ran but it does not show in my installed packages in PyCharm. When I go to the folder the packages are in it is there so i try to make PyCharm recognize it but I am told the setup.py file does not exists.
I also tried to download the zip file and unpack it in the right folder and try to install it that way in PyCharm and it still fails. In this file the setup.py file exists but I am still told it does not.

Ok so your problem is that you dont have git installed in your system. In windows its just a file executable for LINUX you can visit https://www.activestate.com/resources/quick-reads/pip-install-git/

Related

How do I install modules such as (pandas/ openpyxl) [duplicate]

This question already has answers here:
How do I use installed packages in PyCharm?
(14 answers)
Closed 1 year ago.
Okay so I have just started to learn python. I use pycharm to currently write the code. I just dont understand how I install modules. For example I wish to load in excel files. I have seen that either pandas or openpyxl can be used, but I dont get how I get access to these modules. All videos I have seen online just type either install openpyxl or pip install pandas. 'install' does not come up as a valid function on my window. Other functions come up highlighted before I complete them and install seems to be like its not recognized and once executed I get a syntax error for install. Do I have to download these modules before installing?
pip install <package>
needs to be written in terminal, not in code window. In the bottom left corner you have "terminal" button, press it, and in new window type pip install whatever you want.

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!

Install Python packages and directories (windows) [duplicate]

This question already has answers here:
How to change the path of Python in Spyder?
(5 answers)
Closed 4 years ago.
I am new to configuring and setting up Python from scratch.
I have installed Anaconda and I plan to use Spyder for python development. I also have a older version of Python installed on the same machine elsewhere.
I needed to get my hands on a package to use in Spyder which I needed to download and install.
I downloaded and installed pip directly from the website and then I used this in the command line of the older python install to obtain the package I required.
However I don't understand how I go about making this available to Spyder. I believe it works on a folder structure within it's own directory and I am unsure how to change this to get the package I have already downloaded.
I thought I might be able to copy it across, or point it at the directory where the package was downloaded to but I cannot work out how to do this.
I also tried using pip from within Spyder to work but it cannot find it.
Can you please let me know what I need to check?
from the command line can you use pip? Btw I believe python 3 comes with pip included anyway you need to make sure it's in your path
Find pip.exe on your computer, then add its folder (for example, C:\Python27\Scripts) to your path (Start / Edit environment variables). Now you should be able to run pip from the command line. Try installing a package:
pip install httpie
Try to:
Open Anaconda Prompt and then do: pip install whatever - to install wheels
If you want to install spyder the open Anaconda Navigator - and you should be in the home tab - then highlat spyder and press install - thats all.
There are other ways but within spyder ipython console you can install package like.
In [1]: import pip
In [2]: pip.main(['install', 'module-name'])

Using a python package [duplicate]

This question already has answers here:
How to install Python packages from the tar.gz file without using pip install
(7 answers)
Closed 5 years ago.
I have downloaded the tar file of the Python geohash package
I import functions from this package to use them inside my python programs. It works completely fine, but only inside its own folder, where it is extracted.
If I intend to use this package in any other location, it doesn't simply import that package.
What should I do if I want to use it anywhere in my system ?
(the package is only available through this tarfile, not through pip/sudo apt-get)
Simply untar/unzip the file and make sure you have setup.py visible. From you command prompt in windows or linux. Go to the dir of the package which you just unzipped/untarred and dir/ls to make sure that setup.py is there and then do the following:
If you are using virtualenv:
/path-to-your-venv/venv/bin/python setup.py install
If you are not using virtualenv
python setup.py install

Python-Magic ; Unable to find libmagic [duplicate]

This question already has answers here:
Python-magic installation error - ImportError: failed to find libmagic
(5 answers)
Closed 8 years ago.
I've downloaded and installed python-magic using "pip install python-magic".
Source: https://github.com/ahupp/python-magic
It downloaded and installed perfectly fine. I've also copied the 3 files (cygmagic-1.dll, cygwin1.dll, and cygz.dll) from cygwin installation into C:\Windows\System32.
Then, I also downloaded magic1.dll and placed it in System32 folder too.
But the command prompt is still giving me this error:
ImportError: failed to find libmagic. Check your installation
Why is this so?
EDIT: I've included C:\cygwin\bin into PATH also.
Make sure you also included
C:\cygwin\bin
in your system path. That seems to be the step missing.
Oh I just have to restart the computer for it to work. But ultimately, I still have problems using python-magic because of the "32bit" and "64bit" incompatibility bug. I guess I'll just check the file type by checking the extensions. Oh well.

Categories

Resources