# PIP install virtualenv virtualenwrapper
No problem, but an error occurred when creating virtual environment
# mkvirtualenv - p python3 scrapy
Error is as follows:
Installing setuptools, pkg_resources, PIP, wheel...
Complete the output from the command/home/PTXC/download/scrapy/bin/python3 - setuptools pkg_resources PIP wheel:
Traceback (the most recent call last) :
The File "& lt; Stdin>" , line 7, in & lt; module>
The File "& lt; Frozen zipimport>" , line 259, in the load_module
The File "/usr/share/python - wheels/PIP - 8.1.1 - py2. Py3 - none - any. WHL/PIP/set py", line 16, the in & lt; module>
The File "& lt; Frozen zipimport>" , line 259, in the load_module
The File "/usr/share/python - wheels/PIP - 8.1.1 - py2. Py3 - none - any. WHL/PIP/VCS/subversion. Py", line 9, the in & lt; module>
The File "& lt; Frozen zipimport>" , line 259, in the load_module
The File "/usr/share/python - wheels/PIP - 8.1.1 - py2. Py3 - none - any. WHL/PIP/index. Py", 30, the line in & lt; module>
The File "& lt; Frozen zipimport>" , line 259, in the load_module
The File "/usr/share/python - wheels/PIP - 8.1.1 - py2. Py3 - none - any. WHL/PIP/wheel. Py", line 32, in & lt; module>
The File "& lt; Frozen zipimport>" , line 259, in the load_module
The File "/usr/share/python - wheels/PIP - 8.1.1 - py2. Py3 - none - any. WHL/PIP/pep425tags py", line 9, the in & lt; module>
The File "/usr/local/lib/python3.9 ctypes/set py", line 8, the in & lt; module>
The from _ctypes import Union, Structure, an Array
ModuleNotFoundError: No module named '_ctypes'
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
. Installing setuptools, pkg_resources, PIP, wheel... Done.
Traceback (the most recent call last) :
The File "/usr/lib/python3/dist - packages/virtualenv. Py", line 2363, in & lt; module>
The main ()
The File "/usr/lib/python3/dist - packages/virtualenv. Py", line 709, the main in
Create_environment (home_dir,
The File "/usr/lib/python3/dist - packages/virtualenv. Py", line 984, in create_environment
Install_wheel (
The File "/usr/lib/python3/dist - packages/virtualenv. Py", line 918, in install_wheel
Call_subprocess (CMD, show_stdout=False, extra_env=env, stdin=SCRIPT)
The File "/usr/lib/python3/dist - packages/virtualenv. Py", line 810, in call_subprocess
Raise OSError (
OSError: Command/home/PTXC/download/scrapy/bin/python3 - setuptools pkg_resources PIP wheel failed with the error code 1