AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / ubuntu / Perguntas / 1124110
Accepted
Shaun Overton
Shaun Overton
Asked: 2019-03-09 10:12:30 +0800 CST2019-03-09 10:12:30 +0800 CST 2019-03-09 10:12:30 +0800 CST

Não é possível executar o pip do virtualenv - falha de segmentação (core dump)

  • 772

Estou tentando usar o pip para instalar vários requisitos no meu virtualenv, mas não consigo contornar o erro Segementation fault (core dumped). Esse erro parece indicar problemas de acesso à memória, mas não entendo como ou por que isso aconteceria em um venv.

soverton@osr-ubuntu-2:~/Documents/eroi-erp$ pipenv --python 3.7.2
Warning: Python 3.7.2 was not found on your system…
Would you like us to install CPython 3.7.2 with pyenv? [Y/n]: Y
Error: invalid input
Would you like us to install CPython 3.7.2 with pyenv? [Y/n]: Y
Installing CPython 3.7.2 with pyenv (this may take a few minutes)…
✔ Success! 
Downloading Python-3.7.2.tar.xz...
-> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
Installing Python-3.7.2...
Installed Python-3.7.2 to /home/soverton/.pyenv/versions/3.7.2


Creating a virtualenv for this project…
Pipfile: /home/soverton/Pipfile
Using /home/soverton/.pyenv/versions/3.7.2/bin/python3.7m (3.7.2) to create virtualenv…
⠧ Creating virtual environment...Using base prefix '/home/soverton/.pyenv/versions/3.7.2'
Overwriting /home/soverton/.local/share/virtualenvs/soverton-mUoZmsRb/lib/python3.7/orig-prefix.txt with new content
New python executable in /home/soverton/.local/share/virtualenvs/soverton-mUoZmsRb/bin/python3.7m
Not overwriting existing python script /home/soverton/.local/share/virtualenvs/soverton-mUoZmsRb/bin/python (you must use /home/soverton/.local/share/virtualenvs/soverton-mUoZmsRb/bin/python3.7m)
Command /home/soverton/.loca...ZmsRb/bin/python3.7m -m pip config list had error code -11
Installing setuptools, pip, wheel...
done.
Running virtualenv with interpreter /home/soverton/.pyenv/versions/3.7.2/bin/python3.7m
✔ Successfully created virtual environment! 
Virtualenv location: /home/soverton/.local/share/virtualenvs/soverton-mUoZmsRb
Creating a Pipfile for this project…
soverton@osr-ubuntu-2:~/Documents/eroi-erp$ pipenv shell
Launching subshell in virtual environment…
 . /home/soverton/.local/share/virtualenvs/soverton-mUoZmsRb/bin/activate
soverton@osr-ubuntu-2:~$  . /home/soverton/.local/share/virtualenvs/soverton-mUoZmsRb/bin/activate
(soverton) soverton@osr-ubuntu-2:~/Documents/eroi-erp$ pip install django
Segmentation fault (core dumped)
(soverton) soverton@osr-ubuntu-2:~/Documents/eroi-erp$ pip
Segmentation fault (core dumped)
(soverton) soverton@osr-ubuntu-2:~/Documents/eroi-erp$ pip3
Segmentation fault (core dumped)
python3 pip virtualenv pipenv
  • 2 2 respostas
  • 5299 Views

2 respostas

  • Voted
  1. Best Answer
    philMarius
    2019-03-14T06:44:37+08:002019-03-14T06:44:37+08:00

    Resolvi isso criando primeiro um ambiente usando Python 3.6: pipenv --python 3.6. Nesse ambiente, ambos pipe pip3trabalharam. Em seguida, saí desse ambiente, excluí os dois Pipfilee Pipfile.lockcriei outro ambiente usando pipenv --python 3.7.2no mesmo diretório e ambos pipe pip3trabalhei novamente.

    Eu acho que deve ser um problema com o Python 3.7.2?

    Editar:

    Como Shaun mencionou abaixo, pode ser a anacondainstalação junto com o Python baunilha e a remoção anacondacorrigida.

    • 0
  2. shamnad sherief
    2022-06-16T09:51:56+08:002022-06-16T09:51:56+08:00

    primeiro descubra a localização do pip.

    correwhich pip

    A saída apontará para um arquivo. apenas renomeie o arquivo com a extensão .py É isso

    • 0

relate perguntas

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve