pip3 install not working - No module named 'pip._vendor.pkg_resources'
Question When trying to install a package for Python 3 (in Ubuntu), using pip3 install packageName (or sudo pip3 install packageName), I get the following error message:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 33, in vendored
__import__(vendored_name, globals(), locals(), level=0)
ImportError: No module named 'pip._vendor.pkg_resources'
I have been reading for days and have tried the following WITHOUT any success:
Un-installing and re-installing pip3 using the following code: sudo apt-get remove python3-pip followed by sudo apt-get install python3-pip.…
Read more ⟶Cannot install psycopg2 Ubuntu
Question Trying to get a server ready for a django project and I'm running into some issues with setup for postgres.
I'm following this guide:
https://jee-appy.blogspot.com/2017/01/deply-django-with-nginx.html
And I'm at step 5:
Now, we need to configure postgreSQL so that it can communicate with our Django application. For this, install psycopg2 database
adapter. But this adapter have some package dependencies, so first
install them.
run:
(django_env) $ sudo apt-get install libpq-dev python3-dev…
Read more ⟶vapor: Address already in use (errno: 98) [closed]
Question Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
</div>
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.…
Read more ⟶Cannot run ionic. receives 'No command 'ionic' found'
Question I want to start using the ionic framework, but unfortunately I'm already failing on the first step.
I am running Ubuntu 13.04 and I have node v0.10.25 installed.
I've installed ionic, at described in their docs:
sudo npm install -g cordova
sudo npm install -g ionic
The installation went well, no errors or warnings, but after the installation I type ionic
and I get the error:
No command 'ionic' found, did you mean:
Command 'ionice' from package 'util-linux' (main)
Command 'sonic' from package 'sonic' (universe)
ionic: command not found
I'm pretty new to ubuntu so I might have something not configured correctly, but I can't find what.…
Read more ⟶Git - how to verify if and where Git is installed on Ubuntu
Question I am new to Ubuntu and Git. How I can verify that I have installed git on my machine? When I tried apt-get I got:
root@ubuntu:/home/nebojsa# apt-get install git
Reading package lists... Done
Building dependency tree Reading state information... Done
git is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-24 linux-headers-3.13.0-24-generic
linux-headers-3.13.0-39 linux-headers-3.13.0-39-generic
linux-headers-3.13.0-40 linux-headers-3.13.0-40-generic
linux-headers-3.13.0-43 linux-headers-3.13.0-43-generic
linux-image-3.13.0-24-generic linux-image-3.13.0-39-generic
linux-image-3.13.0-40-generic linux-image-3.13.0-43-generic
linux-image-extra-3.…
Read more ⟶How can I make R read my environmental variables?
Question I am running R on EC2 spot instances and I need R to terminate the instance and cancel the spot request once the script has run.
For that I have set the "Request ID" into an environmental variable in /.bashrc and my plan was to simply call the following code into R once the script is ready
system("ec2-cancel-spot-instance-requests $SIR")
The issue I am having is that R is not "…
Read more ⟶yarn error EACCESS: permission denied, scandir /home/ubuntu/.config/yarn/link
Question Whenever I try something with yarn on Ubuntu 16.04 server. It gives an error.
I am currently using nodejs v8.10.0
yarn install v1.5.1
error An unexpected error occurred: "EACCES: permission denied, scandir '/home/ubuntu/.config/yarn/link'".
info If you think this is a bug, please open a bug report with the information provided in "/home/ubuntu/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Anyone know why this is happening?
Answer It's likely a unix permission related problem.…
Read more ⟶