ubuntu-14.04

How can I make NumPy use OpenBlas in Ubuntu?

a 夏天 提交于 2019-12-07 15:42:43
问题 I have both BLAS and OpenBLAS installed: $ dpkg -l \*blas\* | grep ^i ii libblas-dev 1.2.20110419-7 amd64 Basic Linear Algebra Subroutines 3, static library ii libblas3 1.2.20110419-7 amd64 Basic Linear Algebra Reference implementations, shared library ii libopenblas-base 0.2.8-6ubuntu1 amd64 Optimized BLAS (linear algebra) library based on GotoBLAS2 ii libopenblas-dev 0.2.8-6ubuntu1 amd64 Optimized BLAS (linear algebra) library based on GotoBLAS2 However, NumPy still says that OpenBLAS is

Unknown url type error in urllib2

雨燕双飞 提交于 2019-12-07 12:11:35
问题 I have searched a lot of similar question on SO, but did not find an exact match to my case. I am trying to download a video using python 2.7 Here is my code for downloading the video import urllib2 from bs4 import BeautifulSoup as bs with open('video.txt','r') as f: last_downloaded_video = f.read() webpage = urllib2.urlopen('http://*.net/watch/**-'+last_downloaded_video) soup = bs(webpage) a = [] for link in soup.find_all('a'): if link.has_attr('data-video-id'): a.append(link) #try just with

Add TeX path to R Studio - Ubuntu

不想你离开。 提交于 2019-12-07 09:48:46
问题 I'm having the same issue as this question: When I open any .Rnw file, R Studio says that I have no TeX Distribution installed: I'm using Ubuntu 14.04 w/ Gnome and TeXLive 2014. I include the line PATH=/usr/local/texlive/2014/bin:${PATH} in the Renviron.site file, which now looks like: ## Emacs please make this -*- R -*- ## empty Renviron.site for R on Debian ## ## Copyright (C) 2008 Dirk Eddelbuettel and GPL'ed ## ## see help(Startup) for documentation on ~/.Renviron and Renviron.site # ##

How to override python's distutils gcc linker with icc?

爱⌒轻易说出口 提交于 2019-12-07 08:47:49
问题 I was able to successfully build cython on Ubuntu 14.04 from source as explained in this SE question/answer Compiling cython From source with icc and I downloaded the source code from here - Cython source code download. The command to compile cython is CC=icc LINKCC=icc python3.4 setup.py build I am enclosing the build log. It is STILL using gcc for linking. Here is a sample of build log. It appears CC=icc LINKCC=icc does NOT seem to change the linker to icc. It is still using x86_64-linux

pycharm remote debugging: failed to find free socket

十年热恋 提交于 2019-12-07 07:51:39
问题 I'm trying to use remote debugging but get this error on pycharm: Error running remoteTest: failed to find free socket My remote host is Ubuntu |(with username and password) and my localhost is windows, I followed the following tutorial: https://blog.jetbrains.com/pycharm/2010/12/python-remote-debug-with-pycharm/ and I used a ssh tunnel on putty to connect to the server. import pydevd pydevd.settrace('localhost', port=21000, stdoutToServer=True, stderrToServer=True) 来源: https://stackoverflow

error while creating new project with Angular-cli

好久不见. 提交于 2019-12-07 07:37:00
问题 When I am trying to create new project by using the command, ng new project-name , I am getting error like below: fs.js:640 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ TypeError: path must be a string or Buffer at TypeError (native) at Object.fs.openSync (fs.js:640:18) at Object.fs.readFileSync (fs.js:508:33) at Function.Version.fromProject (/usr/lib/node_modules/angular-cli/upgrade/version.js:87:31) at Function.Version.isPreWebpack (/usr/lib/node_modules

AttributeError: 'module' object has no attribute 'merge_all_summaries'

此生再无相见时 提交于 2019-12-07 07:23:35
问题 Ubuntu 14.04. Python 2.7.13 :: Anaconda custom (64-bit) I installed Tensorflow follow the tutorial: https://www.tensorflow.org/install/ when I enter ~/anaconda2/lib/python2.7/site-packages/tensorflow/examples/tutorials/mnist and attempt to run the already existed python file: fully_connected_feed.py I met the below AttributeError : :~/anaconda2/lib/python2.7/site-packages/tensorflow/examples/tutorials/mnist$ python fully_connected_feed.py I tensorflow/stream_executor/dso_loader.cc:135]

running oracle imp / exp in Ubuntu 14.04.3

杀马特。学长 韩版系。学妹 提交于 2019-12-07 06:15:23
问题 After installing the oracle packages oracle-instantclient12.2-basiclite-12.2.0.1.0-1.x86_64.rpm and oracle-instantclient12.2-tools-12.2.0.1.0-1.x86_64.rpm with alien -i I want to run the exp utility, but I got an error root@localhost:/usr/lib/oracle/12.2/client64/bin# ./exp ./exp: error while loading shared libraries: libclntsh.so.12.1: cannot open shared object file: No such file or directory root@localhost:/usr/lib/oracle/12.2/client64/bin# export declare -x DERBY_HOME="/usr/lib/jvm/java-8

Issue when trying to write to a mounted volume from inside a container as a non-root user

喜欢而已 提交于 2019-12-07 04:56:09
问题 I'm working with a container that will be running ZooKeeper but I'm running into issues with permissions on the host volumes that I mount into my container. This is my setup: On the host machine (Ubuntu 14.04): Created a "zookeeper" system user (id=106) and group (id=111). Created the directory "/var/log/zookeeper" and set its ownership to zookeeper (ie. chown zookeeper:zookeeper). This is the directory that I will be mounting into my container. Inside the container (Ubuntu 14.04): Also

Elasticsearch clustering behind UFW firewall

给你一囗甜甜゛ 提交于 2019-12-07 03:46:13
问题 I have an Elasticsearch cluster running on two different Digital Ocean droplets. They are both set up for private networking, an I have a Mongo DB replica set running just fine with UFW rules set up to only accept connections on the relevant ports from the droplets' specific (private) IP addresses. However I am not able to get a green Elasticsearch cluster health using the same method, only yellow. This means that the nodes are not able to connect to each other. In elasaticsearch.yml (on both