installation

Install python repository without parent directory structure

假装没事ソ 提交于 2021-02-11 02:57:55
问题 I have a repository I inherited used by a lot of teams, lots of scripts call it, and it seems like its going to be a real headache to make any structural changes to it. I would like to make this repo installable somehow. It is structured like this: my_repo/ scripts.py If it was my repository, I would change the structure like so and make it installable, and run python setup.py install : my_repo/ setup.py my_repo/ __init__.py scripts.py If this is not feasible (and it sounds like it might not

pip: No module name _internal.main

≯℡__Kan透↙ 提交于 2021-02-10 21:57:43
问题 In Windows, python 2.7, I had pip upgraded, and it showed: Successfully uninstalled pip-8.1.2 Successfully installed pip-19.3.1 But when: pip --version It shows: I tried to 'reverse' to the old version by: pip install pip==8.0.2 It shows the same error. Not sure it's about the python version. How can I correct this problem? Thank you. 回答1: You were right with trying to reinstall pip at an older verion; your installation is broken. I've looked around and the consensus is that you should do:

pip: No module name _internal.main

我只是一个虾纸丫 提交于 2021-02-10 21:55:07
问题 In Windows, python 2.7, I had pip upgraded, and it showed: Successfully uninstalled pip-8.1.2 Successfully installed pip-19.3.1 But when: pip --version It shows: I tried to 'reverse' to the old version by: pip install pip==8.0.2 It shows the same error. Not sure it's about the python version. How can I correct this problem? Thank you. 回答1: You were right with trying to reinstall pip at an older verion; your installation is broken. I've looked around and the consensus is that you should do:

Error in dyn.load(file, DLLpath = DLLpath, …) : unable to load shared object '/software/R…', installing dplyr on LSF GNU/Linux server

余生颓废 提交于 2021-02-10 20:18:33
问题 I tried installing 'dplyr' on a Linux server using the following code in a script: install.packages('dplyr', dependencies = TRUE, lib = 'output/software/r/package/installation/', repos = 'http://cran.rstudio.com') but after running it with 'Rscript code.R' I got a long message followed by: ** package ‘dplyr’ successfully unpacked and MD5 sums checked ** libs ... g++ -I/software/R-3.4.0/lib/R/include -DNDEBUG -I../inst/include -DCOMPILING_DPLYR -DBOOST_NO_INT64_T -DBOOST_NO_INTEGRAL_INT64_T

Numpy Installation for Python Ver-3.9 [duplicate]

痴心易碎 提交于 2021-02-10 07:50:08
问题 This question already has answers here : Installing numpy with pip on windows 10 for python 3.7 (3 answers) Closed 4 months ago . I'm trying to install NumPy but I'm facing an issue. The python ver I'm using is 3.9 and Windows version is 10. The error is as follows: C:>pip3 install numpy Collecting numpy Using cached numpy-1.19.2.zip (7.3 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... error ERROR: Command errored out with

Not able to setup airflow, getting error while “Initiating Airflow Database”

三世轮回 提交于 2021-02-10 06:53:56
问题 Not able to setup airflow, getting error while "Initiating Airflow Database" . I am getting the below error: File "/Library/Frameworks/Python.framework/Versions/3.8/bin/airflow", line 26, in <module> from airflow.bin.cli import CLIFactory File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/airflow/bin/cli.py", line 79, in <module> api_module = import_module(conf.get('cli', 'api_client')) # type: Any File "/Library/Frameworks/Python.framework/Versions/3.8/lib

Not able to setup airflow, getting error while “Initiating Airflow Database”

巧了我就是萌 提交于 2021-02-10 06:52:08
问题 Not able to setup airflow, getting error while "Initiating Airflow Database" . I am getting the below error: File "/Library/Frameworks/Python.framework/Versions/3.8/bin/airflow", line 26, in <module> from airflow.bin.cli import CLIFactory File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/airflow/bin/cli.py", line 79, in <module> api_module = import_module(conf.get('cli', 'api_client')) # type: Any File "/Library/Frameworks/Python.framework/Versions/3.8/lib

How to change maven home directory?

北慕城南 提交于 2021-02-10 05:52:12
问题 I have maven home directory as below, [root@localhost configuration-simple]# su -c "vi /etc/profile.d/maven.sh" [root@localhost configuration-simple]# mvn -version Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 19:21:28+0530) Maven home: /home/kartyk/NetBeansProjects/motown.io/motown-develop/apache-maven-3.0.5 Java version: 1.7.0_51, vendor: Oracle Corporation Java home: /usr/java/jdk1.7.0_51/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux",

MongoDB installation problems Linux Mint Debian

巧了我就是萌 提交于 2021-02-09 11:12:49
问题 MongoDB did not install correctly because of some Dpkg errors. Trying to purge or remove anything related just comes with the error. I have tried deleting all of the Mongodb libs and did a search for other files. I am not sure what caused the original error or how to get the system back to a workable state: Setting up mongodb-org-server (2.6.5) ... invoke-rc.d: unknown initscript, /etc/init.d/mongod not found. dpkg: error processing mongodb-org-server (--configure): subprocess installed post

No module named 'pandas_datareader' in Jupyter (Anaconda) after I run pip3 install pandas_datareader

▼魔方 西西 提交于 2021-02-09 09:21:50
问题 I am trying to learn pandas and want to load some stocks data. I was following a course which advised me to load pandas.io.data, but this did not work as io.data was depreciated. So I decided to use pandas-datareader instead. But I am struggling to instal it on mac in Anaconda (Jupiter notebook). First time I run import pandas_datareader as pdweb I got ModuleNotFoundError: No module named 'pandas_datareader'. Not surprising as I never used this before so I run pip3 install pandas_datareader