7

I finished my django project.And ı want to deploy my project on aws.I pulled from github my project and then on virtual computer on aws(ubuntu) run pipenv install,I am getting this error every time.

ERROR:: --system is intended to be used for pre-existing Pipfile installation, not installation of specific packages. Aborting.

How can I fix that

5 Answers5

15

Please run this code.

pipenv --venv

A file directory is returned.This file is already collapsed by some reasons. So you delete this file and you remake it.

In my case, this way solves my problem.

Haru
  • 1,884
  • 2
  • 12
  • 30
12

You can get information about any running virtual environments with

pipenv --venv

To end a virtual environment, run:

pipenv --rm

This solved the problem for me. Also, don't be afraid to leverage existing documentation with the --help tag.

Alex Mayberry
  • 121
  • 1
  • 2
4

You can just remove the existing env,

pipenv --rm

and re-create the env

python3 -m pipenv shell

Alternatively, this works too: Come outside of the parent directory and create a folder there and create a virtual env in the new folder

python3 -m pipenv shell
Kaushik k
  • 61
  • 3
2

Appears there is a venv with a similar project name. Either change the project name or run the command: pipenv --venv delete the virtual env then run the command again
pipenv install django

-1

Please run it from the same sub folder the file is in or create the project by giving a dot(.) after the project name to avoid creating a sub folder. Else this issue would occur.