![]() ![]() The directory '/home/user-ii-6/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. If executing pip with sudo, you may want sudo's -H flag. Please check the permissions and owner of that directory. The directory '/home/user-ii-6/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Sudo pip install wxpython or sudo pip3 install wxpythonĪfter completion, you will see this message. Run sudo apt install make gcc libgtk-3-dev libwebkitgtk-dev libwebkitgtk-3.0-dev libgstreamer-gl1.0-0 freeglut3 freeglut3-dev python-gst-1.0 python3-gst-1.0 libglib2.0-dev ubuntu-restricted-extras libgstreamer-plugins-base1.0-dev I also was able to install wxPython 4 for Python 3 but not for Python 2.7 ( instructions)Īlso, I am very confused why it takes so much CPU to install wxpython sudo pip install wxpythonĪfter waiting long enough the process was complete and I got wxPython 4 installed. I had similar problem with wxPython3 and the solution was to install it with get sudo apt-get install python-wxgtk-3.0 If executing pip with sudo, you may want sudo's -H flag.Īnd eventually error Command "/usr/bin/python -u -c "import setuptools, tokenize _file_='/tmp/pip-install-SyaTU1/wxpython/setup.py' f=getattr(tokenize, 'open', open)(_file_) code=f.read().replace('\r\n', '\n') f.close() exec(compile(code, _file_, 'exec'))" install -record /tmp/pip-record-bzIjlK/install-record.txt -single-version-externally-managed -compile" failed with error code 1 in /tmp/pip-install-SyaTU1/wxpython/ check the permissions and owner of that directory. The directory '/home/user/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. I get this warning first The directory '/home/user/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.I am trying to install the wxPython 4 on my Ubuntu 18.04 machine. You may wish to consult the following resources for additional information on this topic. Your virtual environment is deactivated and you should no longer see its name listed next to your command line’s prompt :~/python-environments$ To deactivate an active virtual environment, issue the following command: deactivate You can now begin installing Python packages and libraries that will remain isolated to your virtual environment. The name of the working environment appears in parentheses after it’s created. You should see your env environments Python version: python3.6Īctivate the newly created virtual environment: source env/bin/activate Validate that your environment is installed with the version of Python that you expect: ls env/lib This directory contains all of the isolated files, packages, modules, and executables that is used by your new environment. The command creates a new directory with the name you assigned to your virtual environment. ![]() Replace env with the name you would like to assign to your virtual environment. Since Ubuntu 18.04 does not have Python 2 installed, you should use the -python option to tell virtualenv to use your system’s Python 3.6 interpreter. By default, virtualenv attempts to use the Python 2.5 interpreter to create a new environment. Install the virtualenv tool using your package manager: sudo apt install virtualenvĬreate a python-environments directory in your user’s home directory and navigate to it: mkdir ~/python-environments
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |