Im having problems downloading packages to jupyter lab and vs code - selenium

Every time i try to download a package it says it isn't available
(GPU_BUY_BOT2) C:\Users\tyriq>pip3 install python-dotenv
Requirement already satisfied: python-dotenv in c:\users\tyriq\anaconda3\envs\gpu_buy_bot2\lib\site-packages (0.19.2)
Ive tried installing with conda as well when i go into jupyter lab it says the package doesn't exist.

Related

Troubles installing Pandas on Mac Book Pro with M1 procesor

I switched from Windows NTB to MacBook Pro with M1. And I am not able to install Pandas, some issue with missing wheel for numpy. I am using Python 3.9. I went through various solutions presented here like this one below, but none work for me: https://stackoverflow.com/a/66048187/16324084
This one was one of the most explanatory, but I went through all steps, but when I run some code I will get this error message:
ModuleNotFoundError: No module named 'pandas'.
As I am new with Apple, no idea what is conda or roseta, so please can somebody write me what I should do to get Pandas installed and working? And please try to explain it as a small child, thanks.
I recommend you install Anaconda, a package manager. Instructions here. I have all of my packaged managed through this on my Big Sur m1 silicone MacBook pro and have not had issues since switching over from Intel.
Once you have installed anaconda, open terminal and run:
conda install pandas
More info on using anaconda here

Unable to import required dependencies, Python with Pandas and Numpy

I think this question has been asked before on the internet, but the proposed solutions have so far not worked.
I am trying to run a script that imports numpy and pandas. When I run using the Python Console in my IDE (PyCharm), everything works fine. However, when I run the script from the command line, the following error is displayed:
DLL load failed: The specified module could not be found.
and
Unable to import required dependencies
I am using Anaconda Navigator. There my Pandas and Numpy are listed. I tried to uninstall them via the conda shell (conda uninstall numpy, conda uninstall pandas) and then install them again, but without result.
Hope anyone can help.
If you haven't already call this (no quotes)
conda activate "name of environment that has your modules installed"
After trial and error, I de-installed Anaconda and installed pip instead. Then I installed the modules using pip, and it worked like a charm.
(Not the most elegant answer since it does not explain why things went wrong in the first place, but it offered a workable solution at least.)

Problem with importing tensorflow and testing NN

I'm currently working on a program to play a game similar to atari-games. I'm using keras (python 3). I finished writing the code and I want to test it, and I have few questions about the process:
first of all, I have trouble importing tesnorflow for some reason. I've installed it using pip. I've made sure to created new env. before the installation (which finished successfully), but when I try to run my program it says:
ModuleNotFoundError: No module named 'tensorflow'
I also, tried to install the package from within pycharm, but then I get this error:
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
I've checked program requirements (such as pip, python, virtualenv and setuptools versions) and everything seems up to date. perhaps someone could point out what else might be the problem?
Is there any other way I can test the performance of my program?
Thank you very much for your time and attention.
Anaconda is a complete time-saver. I suggest create an enviornment using Anaconda and install the tensorflow by conda install tensorflow If you would like to use the gpu version, conda automatically installs the CUDA and cudnn for you too.

anaconda installing numpy/pandas/matplotlib error

first post here, so I'm going to try to be as thorough as possible.
I'm trying to install numpy/matplotlib/pandas for a project. First time trying to use them. I'm following the steps of a tutorial, so I can't vary from that too much (have to use anaconda). I'm using mac OS Sierra 10.12.5
What I've done:
installed python 3, anaconda, and create and initialize a virtual environment using Anaconda. I then type:
conda install numpy pandas matplotlib
The terminal then tells me what new packages will be installed, I proceed. A few are installed successfully, and then I get this error:
CondaError: CondaHTTPError: HTTP None None for url https://repo.continuum.io/pkgs/free/osx-64/mkl-2017.0.3-0.tar.bz2
Elapsed: None
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
I thought this might be a connection issue, as I'm in China, but I've tried multiple times both using and not using a VPN. This problem is really stopping me in my tracks, any ideas?
Have you tried using the pip installer, or installing using the Anaconda navigator? To install using pip, after creating the virtual environment, open a terminal console, and type
source activate [name of virtual environment]
pip install numpy
pip install matplotlib
pip install pandas
Pip is included in the base anaconda installation, so this should work. If your Anaconda installation included the Anaconda Navigator, you can also install these modules through the GUI, by opening the Anaconda Navigator, clicking on the environments tab, selecting the virtual environment, searching for module in the search bar (make sure you select All and not Installed in the dropdown menu next to it), and then selecting the desired modules and clicking the apply button (this is an example).

How do I configure PyCharm to Pandas

I am using a mac OS Sierra 10.12.3
using Pycharm Community Edition 2016.3.2
in PyCharm i am using Python 2.7.11 and tried to run the following
import pandas as pd
it gives me error saying no modules named pandas
so i went to my terminal and typed
pip install pandas
here is the response
Brians-MBP:~ brians$ pip install pandas
Requirement already satisfied: pandas in ./miniconda3/lib/python3.5/site-packages/pandas-0.19.2-py3.5-macosx-10.6-x86_64.egg
Requirement already satisfied: python-dateutil>=2 in ./miniconda3/lib/python3.5/site-packages/python_dateutil-2.6.0-py3.5.egg (from pandas)
Requirement already satisfied: pytz>=2011k in ./miniconda3/lib/python3.5/site-packages/pytz-2016.10-py3.5.egg (from pandas)
Requirement already satisfied: numpy>=1.7.0 in ./miniconda3/lib/python3.5/site-packages/numpy-1.12.0-py3.5-macosx-10.6-x86_64.egg (from pandas)
Requirement already satisfied: six>=1.5 in ./miniconda3/lib/python3.5/site-packages/six-1.10.0-py3.5.egg (from python-dateutil>=2->pandas)
When I go to preferences - project interpreter and select 2.7.11 as my interpreter it does not show pandas.
but when i select 3.5.2 (~/miniconda3/bin/python) it does show pandas.
How do I link pandas to 2.7.11?
open PyCharm, go o preferences and then go to the Project Interpreter section. From there you can click the + button and then click on pandas and then click install packages
Mac OSX computers come with a version of Python 2.x pre-installed. The precise version depends on the recency of the computer, but all now ship with 2.7.11. Try opening a new command line and running which -a python in your command line: you should see something like /System/Library/Frameworks/Python.framework/Versions/2.7.
To install on this Python, you can open a new Terminal and simply run pip install pandas.
Note however that messing with your system Python is not recommended. It's strongly recommended that you use a virtualenv or conda (which you appear to be using) to virtualize the environment instead.
And while there is a way of achieving the same affect within PyCharm itself, this isn't a PyCharm-specific problem.