If you want to remove (base) from your terminal, update your. Source deactivate scrapy_june_2017 Remove (base) from your command line You can create a virtual environment for different environmentsĬonda create -name scrapy_june_2017 python=3 A work around is to use "/usr/bin/gsettings" to access the original gsettings. Your settings will not be saved or shared with other applications." when trying to use gsettings. NOTE: When you install Anaconda it might install its own version of glib, taking over gsettings, which is quite annoying, since it can result in this error: "GLib-GIO-Message: Using the 'memory' GSettings backend. ModuleNotFoundError: No module named 'PIL'įix the error by installing pillow with conda, still inside the virtual environmentĬd /home/project/scrapy/projectname/ & /home/YOUR_USER_NAME/.anaconda3/envs/scrapy_june_2017/bin/scrapy crawl my_spider -o /home/YOUR_USER_NAME/my_spider.csv -t csv -set=CLOSESPIDER_ITEMCOUNT=10 -set=CLOSESPIDER_TIMEOUT=500 Scrapy: /home/YOUR_USER_NAME/.anaconda3/envs/scrapy_june_2017/bin/scrapyĪfter test running Scrapy I got this errorįile "/home/YOUR_USER_NAME/.anaconda3/envs/scrapy_june_2017/lib/python3.6/site-packages/scrapy/pipelines/images.py", line 15, in Make sure this line is added in ~/.bashrc:Įxport PATH="/home/YOUR_USER_NAME/.anaconda3/bin:$PATH" When you are prompted for which directory to install Anaconda in, I personally change it to a directory with a punctuation mark in front, to keep it hidden, like this: Press enter and type "yes" when required. With these commands you can get Scrapy up and running on Ubuntu 16.04:ĭownload the latest Anaconda to your /tmp directory and start the installation, you can always see if there is a new release here: Since it isn't possible to install Scrapy with sudo apt-get install scrapy, the recommended way is to install it inside a virtual Python environment called Anaconda. I have also tried rm -rf anaconda3 and reinstalling, that did not help either.With Scrapy you can crawl web sites and get their content, mainly text and images. ? ubuntu-toolchain-r-ubuntu-test-xenial.list ? graphics-drivers-ubuntu-ppa-xenial.list Ls: cannot access '/etc/apt//': Permission denied Ls: cannot access '/etc/apt//graphics-drivers-ubuntu-ppa-xenial.list': Permission denied Ls: cannot access '/etc/apt//cuda.list': Permission denied Ls: cannot access '/etc/apt//bazel.list': Permission denied Ls: cannot access '/etc/apt//ubuntu-toolchain-r-ubuntu-test-xenial.list': Permission denied Ls: cannot access '/etc/apt//.': Permission denied The following question marks come : ls: cannot access '/etc/apt//cuda-10-1-local-10.1.168-418.67.list.save': Permission denied WARNING:root:could not open file '/etc/apt//graphics-drivers-ubuntu-ppa-xenial.list' WARNING:root:could not open file '/etc/apt//cuda.list' WARNING:root:could not open file '/etc/apt//bazel.list' WARNING:root:could not open file '/etc/apt//ubuntu-toolchain-r-ubuntu-test-xenial.list' It shows more errors: WARNING:root:could not open file '/etc/apt/sources.list' I tried steps in ( How to solve the error: WARNING:root:could not open file '/etc/apt/sources.list'). I am facing no issues at this stage, But, when I finally call conda list to check if it is working properly, I get the following issue: WARNING:root:could not open file '/etc/apt/sources.list' I am trying to install conda using anaconda installing on linux steps These are my server details: Distributor ID: Ubuntu
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |