Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

326
Views
¿No puedo crear un nuevo virtualenv en ubuntu?

Entonces, instalé virtualenv en la terminal de ubuntu. Lo instalé usando los siguientes comandos:

 sudo apt install python3-virtualenv pip install virtualenv

Pero cuando trato de crear un nuevo virtualenv usando:

 virtualenv -p python3 venv

Estoy teniendo el siguiente error:

 AttributeError: module 'virtualenv.create.via_global_ref.builtin.cpython.mac_os' has no attribute 'CPython2macOsArmFramework'

¿Cómo puedo resolverlo?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Yo tuve una experiencia similar. La razón de esto es que lo hice instalando dos virtualenv con apt y pip3.

 pip3 uninstall virtualenv virtualenv my-python3
over 4 years ago · Santiago Trujillo Report

0

No necesita usar virtualenv . Puedes usar esto:

 python3 -m venv ./some_env
over 4 years ago · Santiago Trujillo Report

0

En primer lugar, solo uno de

 sudo apt install python3-virtualenv pip install virtualenv

debería hacer. No necesita el comando pip si la instalación de apt funcionó.

En segundo lugar, debería poder crear uno en el que pueda escribir:

 edd@rob:/tmp$ mkdir venvdemo edd@rob:/tmp$ cd venvdemo/ edd@rob:/tmp/venvdemo$ virtualenv -p python3 venv created virtual environment CPython3.9.5.final.0-64 in 162ms creator CPython3Posix(dest=/tmp/venvdemo/venv, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/edd/.local/share/virtualenv) added seed packages: pip==20.3.4, pkg_resources==0.0.0, setuptools==44.1.1, wheel==0.34.2 activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator edd@rob:/tmp/venvdemo$ edd@rob:/tmp/venvdemo$ ls -a . .. venv edd@rob:/tmp/venvdemo$ ls -a venv/ . .. bin .gitignore lib pyvenv.cfg edd@rob:/tmp/venvdemo$

(e hice esto en una máquina con Ubuntu).

En tercer lugar, algo sigue estando muy mal porque con Ubuntu no debería recibir un mensaje de error para CPython2macOsArmFramework .

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!