I have absolute no further idea, how i could manage the installation of the epftoolbox in python. I have tried the steps from https://epftoolbox.readthedocs.io/en/latest/modules/started.html in various ways and directions, but it still doesn't work and i get the following error when running the file:
ModuleNotFoundError: No module named 'epftoolbox.evaluation'
Can anyone suggest a step by step video or something like that, where the installation is showed for 'dummies'?
Any help would be veeeeery appreciated!
PS: I'm working with pycharm
Since you're working with pycharm first create a new project with a virtual environment and open the terminal and type the following clone statement : git clone https://github.com/jeslago/epftoolbox.git
then move to the cloned directory by typing this command:
cd epftoolbox
once your'e inside this directory run your pip install command:
pip install .
you should be able to work with the library here.
since you already created the virtual environment..
Hope it solved your problem.
Related
I am studying Django for the first time and everything was going well until the last day. Today when I tried opening my Django project, the terminal returns an error saying :-
Unable to create process using
'C:\Users\User1\AppData\Local\Programs\Python\Python310\python.exe manage.py runserver'
Thinking that it might be an issue with the virtual env, I tried checking my Python Interpreter to make sure I am currently in my venv.
Fortunately, I am currently using my venv but Pycharm indicates me to Install Python Packaging Tools.
I tried the link to install it but it notifies a Non Zero Exit Code(101) and Invalid Python SDK error.
Googling for the error asked me to check the path in Environment Variables where two are present -
C:\Users\User1\AppData\Local\Programs\Python\Python310\
C:\Users\User1\AppData\Local\Programs\Python\Python310\Scripts\
Recently I had added MingW Compiler to the path and that was it. I've never touched the path of Python.
I would like to mention that there are no errors in creating a new virtual envirnoment nor activating it. But things get worse when I try to pip install django. CMD tells that unable to create process.
Please help! I am actually stuck with my project.
Happy to say that I have fixed the issue.
Steps followed include :
Uninstalled Python,Deleted Path,Restarted my pc
Downloaded and Installed Python 3.10.2 from the official site.
Upgraded pip
Installed virtualenv using pip install virtualenv
Tested it creating env using - py -m venv "environment name"
pip install django works + started a project and the setup was successful.
First, try to run any python file (not in your project).
If it works, then the problem is with your django project or the env (try to create a new env and move your files to it).
At last, I think you should reinstall python; this will fix the problem I guess.
I recently finished with PSET9 and wanted to transition from CS50 IDE to VS Code for the Final Project. Problem is I don't know what exactly I need to set up to make it all work. I guessed that I just need to import the CS50 library, which I then did following me checking out their GitHub. I did as instructed pip3 install cs50. However, even though various files were installed, my application.py is still saying that it can't find any modules, see screenshot. Why is that? What do I need to do?
Also what might I still be missing after having resolved this? Do I still need to do something to fully have the CS50 IDE essentially running on the VS Code (server, databases, etc)?
VS Code screenshot
I think you need to create virtual environment for that and then activate it.
Create virtual environment in command line Windows
go to you root app folder.
python3 -m venv env (type this command in terminal)
for activate env type this in windows (env\scripts\activate)
for apple and linux type this in terminal) source env/bin/activate
then use pip install
First thing to do is just make sure you've got those items installed correctly by using these commands in your terminal:
pip show cs50
flask --version
werkzeug --version
If they're installed, but you haven't quit and restarted VS Code, try that.
If you're using a virtual environment, make sure you reactivate it before trying to run your application.
I hope one of these helps solve your problem!
Every-time I create a new virtual environment, I cannot use pip from it. I know that I managed to solve this once, but I dont know how. It just happened.
So here is how I go about creating a venv:
I create a new virtual environment from the VS Code terminal inside my projects folder using python3 -m venv venv_x.
I get the pop-up asking if I want to use it and I click yes. It also gets displayed correctly.
But when I try to run pip using python3 pip or python pip I get /usr/local/bin/python3: can't open file 'pip': [Errno 2] No such file or directory.
Running which pip gives no putput.
My pyvenv.cfg inside venv_x/pyvenv.cfg :
home = /usr/local/bin
include-system-site-packages = false
version = 3.8.6
What am i doing wrong? It cant be that hard. So I am probably forgetting something obvious.
Every help is greatly appreciated!
Edit: Maybe showing the contents of the venv can help.
But after executing a python script VS Code asks me to install my code formatter black, which after accepted, gets installed by the IDE like this:
`.../dev/test/venv_x/bin/python" /Users/chris/.vscode/extensions/ms-python.python-2021.3.680753044/pythonFiles/pyvsc-run-isolated.py pip install -U black'
The venv packages folder contents gets updated accordingly and black works.
Using only pip3solved it.
Not using python pipor python3 pip or python3 pip3.
I find that quite weird.
so i got this problem when I try to: import win32api on my Pycharm project.py code. I got this error: Non-zero exit code (1)
I also tried with pypiwin32 and I still got the same error.
What is strange is when I executed the pip install pypiwin32 command on my CMD the instalation of pypiwin32 worked. But it still doesnt work on Pycharm. Thanks for the help
Looks like you're having trouble finding the win32api module.
Don't worry. I will help you solve this issue.
First, if you are using virtualenv, please make sure you have activated your environment.
If you don't know how to activate, please refer these links below:
How to activate virtualenv?
Activate venv (Python 3.7.2) for Windows [duplicate]
Second, when you create the project, please choose New environment using Virtualenv.
Then select Inherit global site-packages and Make available to all projects and press Create button.
This is a screensnap for reference.
Third, you need to edit configuartions.
Like this screensnap shows below, you need to choose .py file by selecting Script Path.
Finally, after everything is configured, it can work well.
I am starting on a project for classified ad listing site and found a template to get me started.
The installation instruction on git are not clear to me.
I created virtual env and installed dependencies using pip but I can't finish the installation process: manage.py runserver could not be executed and showed "could not find module sorl.thumbnail".
I think there is some error due to folder structure but cannot figure out what. Any ideas?
This is my folder structure.
It seems that the dependency sorl.thumbnail is not (successfully) installed.
Try running pip install sorl-thumbnail==11.05.2. That should install the module (in the version required by django-classifieds according to the requirements.txt). Check the output for any errors.
Also, make sure that you are using the right environment.
My only guess is that you either forgot to install sorl.thumbnail or that it is in a separate environment than django-classifieds. To add it manually, download the zip from the specified URL, extract the zip, and, in a command prompt/terminal in the directory you extracted the zip into, and run python setup.py build and python setup.py install.