ubuntu-18.04

How to install python3.7 and create a virtualenv with pip on Ubuntu 18.04?

左心房为你撑大大i 提交于 2020-01-10 07:35:06
问题 I'm trying to set up a standard virtualenv with python 3.7 on Ubuntu 18.04, with pip (or some way to install packages in the virtualenv). The standard way to install python3.7 seems to be: % sudo apt install python3.7 python3.7-venv % python3.7 -m venv py37-venv but the second command fails, saying: The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command. apt-get

Matplotlib: Memory and 'CPU' leak

核能气质少年 提交于 2020-01-06 05:25:10
问题 python: 2.7 Ubuntu: 18.04 matpltolib: 2.2.2 I have a client GUI that get information from a server and displays it. I see memory leak and change in CPU consumption with time. The picture below shows a change in CPU and memory utilization after restarting the client with GUI (~25 seconds from the right, aligned with a spice in network traffic). The CPU graph has a dip in the CPU utilization showing that CPU usage is different before and after the restart of program. The Memory graph shows a

Rscript and Nodejs integration on Ubuntu Server

一个人想着一个人 提交于 2020-01-06 04:00:05
问题 I am trying to build a node js app in which i call rscript to do some statistical computation and return an array with 8 elements which then i pass back to nodejs so that we can display those elements on ejs pages . I am successfully able to do this on local host everything is working fine and even rscript is running and giving back the output, but when we try to do the same on ubuntu server we are not getiing any console.log(out) on our terminal (out is the variable which gets the output

missing “System” reference on ubuntu and .net core 3.0

假如想象 提交于 2020-01-05 08:34:27
问题 I'm trying to develop a simple web app using .Net Core 3.0 on an Ubuntu machine. I setup the .Net Core SDK and the runtime from this link. I setup VS Code and then I create a project using the following commands dotnet new webapp -o RazorPagesMovie code -r RazorPagesMovie I built the project and it is working. But in VS Code, it shows the following error: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?) screenshot of vs code

dockerfile - openjdk-8-jdk have unmet dependencies

核能气质少年 提交于 2020-01-05 04:07:11
问题 In continuation to question, below is the updated docker file: FROM microsoft/aspnetcore-build:1.0.1 ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE 1 # This is FROM openjdk:8-jdk RUN apt-get update && apt-get install -y --no-install-recommends \ bzip2 \ unzip \ xz-utils \ apt-transport-https \ && rm -rf /var/lib/apt/lists/* RUN apt-get install -y --no-install-recommends apt-transport-https ca-certificates RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys

Ubuntu 18.04 and msodbcsql17: Can't open lib - SHOULD I FILE A BUG REPORT?

柔情痞子 提交于 2020-01-03 19:58:20
问题 Folks, I have installed the msodbcsql package at least several dozen times. Never had this issue come up. Even spent the entire day yesterday trying to fix this. Step 1: add the apt key and repo to sourced.list.d Step 2: apt-get install the msodbcsql17, mssql-tools, php odbc_pdo extensions, etc Step 3: create a very basic test.php that (on all other existing older servers WORKS) makes a test connection to my mssql db. Fails with: SQLSTATE[01000] SQLDriverConnect: 0 [unixODBC][Driver Manager

Missing dependencies causing Keyring error when opening Spyder3 on Ubuntu18?

六月ゝ 毕业季﹏ 提交于 2020-01-02 02:46:09
问题 I'm fairly new to programming and such. I'm trying to use Spyder3, and I keep getting this error (below). I am using Geforce 1080ti, Ubuntu 18.04.01, python3.3.6, python2 is not installed. I tried $ pip3 install keyring, which is now installed but still receiving error. $ spyder3 Error initializing plugin EntryPoint('Windows (alt)', 'keyrings.alt.Windows', None, Distribution('keyrings.alt', '3.0')). Traceback (most recent call last): File "/home/usr/.local/lib/python3.6/site-packages/keyring

Virtualbox install on Linux Mint 19 Tara

匆匆过客 提交于 2019-12-31 07:03:12
问题 I tried to install Virtualbox on linux Mint version 19, Code name : Tara, PackageBase : Ubuntu Bionic Cinnamon (64-bit) Reference link Downloaded this version of linux from above reference link- VirtualBox 5.2.18 for Linux Ubuntu 18.04 / Debian 10 AMD64 First ran the command: sudo apt-get update and then tried below command xxxxxxxxxx:~/Downloads$ sudo dpkg -i virtualbox-5.2_5.2.18-124319_Ubuntu_bionic_amd64.deb (Reading database ... 273616 files and directories currently installed.)

Virtualbox install on Linux Mint 19 Tara

若如初见. 提交于 2019-12-31 07:03:10
问题 I tried to install Virtualbox on linux Mint version 19, Code name : Tara, PackageBase : Ubuntu Bionic Cinnamon (64-bit) Reference link Downloaded this version of linux from above reference link- VirtualBox 5.2.18 for Linux Ubuntu 18.04 / Debian 10 AMD64 First ran the command: sudo apt-get update and then tried below command xxxxxxxxxx:~/Downloads$ sudo dpkg -i virtualbox-5.2_5.2.18-124319_Ubuntu_bionic_amd64.deb (Reading database ... 273616 files and directories currently installed.)

Import conda error traceback upon opening terminal

限于喜欢 提交于 2019-12-30 09:54:12
问题 The below lines of code show up every time I open my terminal. Traceback (most recent call last): File "<stdin>", line 3, in <module> ImportError: No module named conda I am worried I have possibly corrupted my (base) conda environment but I haven't run into any issues so far. Mainly, it's just really annoying to see. Using conda activate base gives no errors. All I was doing as of recently was removing and reinstalling different versions of opencv so that I would have a version that allows