Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regarding building a website
#21
REPL means?
Reply
#22
Read Eval Print Loop, i.e. the Python shell.
Reply
#23
i tried to install Django but it is not getting installed whereas I have already installed python and pycharm and python idle 64 bit 3.8

i am not sure what can i do now?
Reply
#24
I'm not sure what to suggest without more information. Perhaps you can try to get more information from Python when you're doing the install:

1. Find out if pip has a flag for more verbose output. It probably does, but I'm not sure what it is - check the docs.

2. Print out the exit code that Python returns to the shell after the command has completed. A non-zero value usually indicates a problem. I'm not sure how you get the exit code on Windows, but you can look that up.

Have you had difficulty installing other libraries?
Reply
#25
No I never installed other libs just installed latest version of python and community version og pycharm.
1) how can i find out "f pip has a flag for more verbose output. It probably does?
2) how can i " Print out the exit code that Python returns to the shell after the command has completed. A non-zero value usually indicates a problem. I'm not sure how you get the exit code on Windows, but you can look that up."
Reply
#26
1. Read the documentation.
2. Find out - the Internet is a wonderful resource.
Reply
#27
(Mar-29-2020, 03:40 PM)jk91 Wrote: No I never installed other libs just installed latest version of python and community version og pycharm.
1) how can i find out "f pip has a flag for more verbose output. It probably does?
2) how can i " Print out the exit code that Python returns to the shell after the command has completed. A non-zero value usually indicates a problem. I'm not sure how you get the exit code on Windows, but you can look that up."

did you mean to say attached error which i am getting in pycharm community edition.

Attached Files

Thumbnail(s)
   
Reply
#28
No, there is no error there and besides, that's irrelevant - I don't see what it has to do with trying to install Django. The goal is to try and understand where the installation is failing, if it is.

Are you using a virtual environment? Perhaps try installing Django in that if so.
Reply
#29
(Mar-29-2020, 03:49 PM)ndc85430 Wrote: No, there is no error there and besides, that's irrelevant - I don't see what it has to do with trying to install Django. The goal is to try and understand where the installation is failing, if it is.

Are you using a virtual environment? Perhaps try installing Django in that if so.

tried in powershell as well but please see attached screen shot error.

Attached Files

Thumbnail(s)
   
Reply
#30
python is not in Windows path look at Python 3.8 (3.6-3.7) and pip installation under Windows
And you don't need virtualenvwrapper-win,Python come with virtual environment venv build in.
# Make 
C:\code>python -m venv django_env

# Cd in
C:\code>cd django_env

# Activate see (django_env)
C:\code\django_env>C:\code\django_env\Scripts\Activate

# Install
(django_env) C:\code\django_env>pip install django

Collecting django 
.....
Successfully installed django-3.0.4

(django_env) C:\code\django_env>
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to get this function using Django in building a website? py2exe 0 2,450 Jul-25-2018, 09:56 AM
Last Post: py2exe

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020